arcana-cli
The arcana command-line interface for Arcana OS. A thin Typer wrapper around arcana-core.
uv tool install arcana-cli # or pip install arcana-cli
# or inside the monorepo:
uv sync --all-packages --all-extras
Commands
arcana init
Initialise Arcana OS. Creates ~/.arcana/ with the default directory layout, config.json, and world.json.
arcana init
arcana status
Show system status: home directory, agent count, and model connection count.
arcana status
arcana providers
Full lifecycle management for model provider connections.
arcana providers list
arcana providers add # interactive
arcana providers add -p ollama -m hermes-3 -n local
arcana providers add -p anthropic -m claude-sonnet-4-6 -n claude -k sk-...
arcana providers show local
arcana providers edit local --base-url http://gpu-box:11434
arcana providers edit claude --rotate-key
arcana providers remove local
| Subcommand | Description |
|---|---|
list |
List all saved connections |
add |
Add a connection (interactive or via flags) |
show <name> |
Show a connection's details (secrets redacted) |
edit <name> |
Edit base URL, API key, or custom headers |
remove <name> |
Remove a connection and its stored credential |
providers add flag |
Description |
|---|---|
--provider / -p |
ollama, anthropic, openai, openai_compat, or custom |
--model-id / -m |
Model ID (e.g. hermes-3, claude-sonnet-4-6) |
--name / -n |
Connection name |
--endpoint / -e |
Custom base URL |
--api-key / -k |
API key (stored in the OS keyring, never in plaintext) |
providers edit flag |
Description |
|---|---|
--base-url |
New base URL / endpoint |
--rotate-key |
Rotate the stored API key (interactive hidden prompt) |
--api-key-env VAR |
Read new API key from an environment variable |
--header "Key: Value" |
Set a custom header (repeatable; custom adapter only) |
--no-verify |
Skip the post-edit health check |
providers remove flag |
Description |
|---|---|
--yes / -y |
Skip confirmation prompt |
--force |
Remove even if dependent agents exist |
arcana agent
Manage agents.
arcana agent create # interactive card picker
arcana agent create --name scout --card the-fool --model local
arcana agent list
arcana agent show my-agent
arcana agent edit my-agent --card hermit --tags research,deep
arcana agent delete my-agent
arcana agent delete my-agent --yes # skip confirmation
arcana agent create without flags walks you through a card picker showing all 22 Major Arcana with their archetype and default temperature, lets you toggle optional modifier cards, and prints a blend-compatibility summary before saving. The World is reserved and cannot be assigned.
| Subcommand | Description |
|---|---|
create |
Create a new agent (interactive or via flags) |
list |
List all agents |
show <name> |
Show full config for an agent |
edit <name> |
Update name, description, card, model, or tags |
delete <name> |
Delete an agent |
The --model flag refers to a connection name created with arcana providers add.
arcana run
Run a prompt against a specific agent. --agent is required.
arcana run "Summarise the latest on LLM evals" --agent researcher
arcana run "Refactor this module" --agent my-agent --stream
arcana run "Where did we leave off?" --agent researcher --continue
arcana run "One-off, don't remember this" --agent researcher --no-memory
| Flag | Default | Description |
|---|---|---|
--agent / -a |
— (required) | Target agent by name or UUID |
--stream / -s |
off | Stream output token by token |
--session |
new session | Resume a specific session by UUID |
--continue |
off | Resume the agent's most recent session |
--no-memory |
off | Run stateless — don't load or persist memory |
The agent is rebuilt from its stored record and run through a ModelGateway using its configured connection. Each run is recorded to a session under the agent, and — unless --no-memory is passed — the agent recalls relevant memory before answering and extracts new memory afterwards through its MemoryFederation. The command prints the session id so you can resume it later with --session or --continue. --session and --continue are mutually exclusive.
arcana chat
Start an interactive, full-screen REPL with a card-configured agent — a scrolling transcript above a pinned input box. It drives the same agent + session + memory path as arcana run. --agent is required.
arcana chat --agent researcher
arcana chat --agent researcher --session <uuid> # resume a session
arcana chat --agent researcher --no-memory # stateless session
| Flag | Default | Description |
|---|---|---|
--agent / -a |
— (required) | Target agent by name or UUID |
--session |
new session | Resume a specific session by UUID |
--no-memory |
off | Run stateless — don't load or persist memory |
Inside the session, slash commands are available (type /help to list them):
| Command | Description |
|---|---|
/help |
List the in-session commands |
/memory |
Show what this agent recalls from this session |
/card |
Print the resolved card config — temperature, tone, weights |
/switch <name> |
Load another agent in a new session |
/retry |
Re-run your last message |
/save |
Force a session snapshot to disk now |
/clear |
Clear the transcript (history is kept) |
/fresh |
Start a new session |
/no-memory |
Start a new stateless session (memory off) |
/exit |
Close the session and quit |
Ctrl+C cancels the current turn (or quits when idle); Ctrl+D quits at an empty prompt.
arcana soul
Manage soul.md — your global user context, injected into every agent's session.
arcana soul edit # open in $EDITOR, seeded from a template on first use
arcana soul show # print the current soul.md
| Subcommand | Description |
|---|---|
edit |
Open soul.md in $EDITOR, creating it from a template on first use |
show |
Print the current soul.md, or a hint if it doesn't exist |
arcana cards
Browse the card definitions.
arcana cards # list all 22 Major Arcana
arcana cards show hermit
| Subcommand | Description |
|---|---|
| (default) | List all 22 Major Arcana |
show <name> |
Show one card's archetype, temperature, and details |
Runtime layout
All state lives under ~/.arcana/, created by arcana init:
~/.arcana/
├── config.json
├── world.json
├── soul.md ← optional global user context (arcana soul edit)
├── agents/{id}/ ← agent.json + memory.db + sessions/
├── connections/ ← models.json
├── vector/ ← global-tier vector store
├── spreads/ ← active agent configurations
└── cards/{core,custom}/
Secrets (API keys) are stored in the OS keyring, never in these files.
Development
# Type check
uv run pyright packages/arcana-cli/arcana_cli
# Tests
uv run pytest packages/arcana-cli/tests/ -v
Roadmap
Agents now run with persistent sessions and the federated memory layer wired into run and chat. Still to come are the commands whose backends land later — arcana world, arcana spread, and arcana mcp (the tool/MCP gateway and The World meta-agent).
Metadata
Release files for arcana-cli 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arcana_cli-0.3.0.tar.gz | 56.8 kB | With provenance | Details for arcana_cli-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arcana_cli-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for arcana_cli-0.3.0-py3-none-any.whl |
Total release size: 107.8 kB
Release files / arcana_cli-0.3.0.tar.gz
| Download URL | arcana_cli-0.3.0.tar.gz |
|---|---|
| Size | 56.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32059d88006deb4be81dfb744501cd6121ca16cae77f94da72816667d1e5944d
|
|
BLAKE2b-256 checksum How to use checksums |
c0da7e30568924798c5fcc2aaec122f2826da322a17ba029e6821525a581373b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency logRelease files / arcana_cli-0.3.0-py3-none-any.whl
| Download URL | arcana_cli-0.3.0-py3-none-any.whl |
|---|---|
| Size | 51.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41ac3765fa8e240f58f8a1a5a77e9881bb69add15e8a16bfa403b833172464e2
|
|
BLAKE2b-256 checksum How to use checksums |
80ae56d90a804a01f5bd9e6f93f295a6a5356b32f2da4f1eaf208ca71cd21e60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency logSecurity for arcana-cli 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for arcana_cli-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.