Getting started¶
Requirements¶
Install¶
Your first agent (CLI)¶
arcana init
arcana providers add -p ollama -m hermes-3 -n local
arcana agent create --name researcher --card hermit --model local
arcana run "summarize recent advances in RAG" --agent researcher --stream
Agents remember
arcana run gives each agent a private memory by default, so it recalls
earlier sessions. Add --no-memory to run stateless for a single turn, or
disable it globally via the memory block in ~/.arcana/config.json. See
Memory → Assembling a federation.
Relocating state
Everything Arcana stores, agents, sessions, connections, and secrets, lives
under ~/.arcana. Set the ARCANA_HOME environment variable to point it
elsewhere, which is handy for separate profiles, CI, or containers.
Chat interactively¶
For a back-and-forth session instead of one-shot run, open the chat:
You get a full-screen transcript with streaming replies, slash commands
(/help, /switch, /memory, …), newline and paste editing, and per-agent
history. See Interactive chat for the full command and key reference.
Your first agent (Python)¶
from arcana import Agent, Card
from arcana.models import ConnectionStore, ModelGateway
async with ModelGateway(ConnectionStore()) as gw:
agent = Agent(
name="researcher",
card=Card.HERMIT, # IX · The Hermit — Researcher / Deep Analyst
modifier_cards=[Card.EMPRESS], # blend in the Empress's warmth
gateway=gw,
model="ollama/hermes-3",
)
result = await agent.run("summarize recent advances in RAG")
Blending cards
A primary card sets the archetype; modifier cards tune the mix. The Hermit blended with the Empress stays analytical but warms its tone.