Skip to main content

Install

Quick Start

Configuration

The CLI resolves config in this order: flag → env var → config file → default.

Persisted config

The CLI shares ~/.honcho/config.json with sibling Honcho tools. It owns only apiKey and environmentUrl at the top level — everything else (hosts, sessions, etc.) is written by other tools and left untouched on save.
Per-command scoping (workspace / peer / session) is handled via -w / -p / -s flags or HONCHO_* env vars. Not persisted as CLI defaults. This is deliberate: every invocation is explicit about what it operates on.

Runtime overrides

Workspace, peer, and session scoping are per-command only — pass flags or HONCHO_* env vars on every invocation.

Output & exit codes

Every command adapts its output to the context:
  • TTY — human-readable tables via Rich.
  • Piped or redirected — JSON automatically (detected via isatty).
  • --json flag / HONCHO_JSON=1 — force JSON regardless of terminal.
Collection commands emit JSON arrays; single-resource commands emit JSON objects. Errors are always structured:
CI pipelines and agent runtimes can branch on these without parsing stderr.

Command reference

honcho conclusion

List, search, create, and delete peer conclusions (Honcho’s memory atoms).
Create a conclusion.
string
required
string
Observer peer ID.
string
Observed peer ID.
string
Session context. Short alias: -s.
Delete a conclusion.
string
required
string
Observer peer ID.
string
Observed peer ID.
boolean
Skip confirmation. Short alias: -y.
List conclusions.
string
Observer peer ID.
string
Observed peer ID.
number
default:"10"
Max results.
Semantic search over conclusions.
string
required
string
Observer peer ID.
string
Observed peer ID.
number
default:"10"
Max results.

honcho config

Inspect CLI configuration.

honcho doctor

Verify config and connectivity. Scope with -w / -p to check workspace, peer, and queue health.

honcho help

Show help message.

honcho init

Set API key and server URL in ~/.honcho/config.json. Press Enter to keep the current value or type a replacement. Workspace / peer / session scoping is per-command via -w / -p / -s or HONCHO_* env vars — never persisted.
string
API key (admin JWT).
string

honcho message

List, create, and get messages within a session.
Create a message in a session.
string
required
string
required
Peer ID of the message sender. Short alias: -p.
string
JSON metadata to associate with the message.
string
Session ID. Short alias: -s.
Get a single message by ID.
string
required
string
Session ID. Short alias: -s.
List messages in a session. Scoped to a peer with -p.
string
number
default:"20"
Number of recent messages.
boolean
Show oldest first (default is newest first).
boolean
Show only IDs, peer, token count, and created_at (no content).
string
Filter by peer ID. Short alias: -p.

honcho peer

List, create, chat with, search, and manage peers and their representations.
Get raw peer card content.
string
string
Target peer for relationship card.
Query the dialectic about a peer.
string
required
string
Target peer for perspective.
string
Reasoning level: minimal, low, medium, high, max. Short alias: -r.
Create or get a peer.
string
required
boolean
Whether Honcho will form a representation of this peer. Negate with --no-observe-me.
string
JSON metadata to associate with the peer.
Get metadata for a peer.
string
Inspect a peer: card, session count, recent conclusions.
string
List all peers in the workspace.
Get the formatted representation for a peer.
string
string
Target peer to get representation about.
string
Semantic search query to filter conclusions.
number
Maximum number of conclusions to include.
Search a peer’s messages.
string
required
number
default:"10"
Max results.
Set metadata for a peer.
string
required
string
Peer ID (uses default if omitted). Short alias: -p.

honcho session

List, inspect, create, delete, and manage conversation sessions and their peers.
Add peers to a session.
string
required
string
required
Get session context (what an agent would see).
string
number
Token budget.
boolean
default:"true"
Include summary. Negate with --no-summary.
Create or get a session.
string
required
string
Comma-separated peer IDs to add to the session.
string
JSON metadata to associate with the session.
Delete a session and all its data. Destructive — requires —yes or interactive confirm.
string
boolean
Skip confirmation. Short alias: -y.
Get metadata for a session.
string
Inspect a session: peers, message count, summaries, config.
string
List sessions in the workspace.
string
Filter by peer. Short alias: -p.
List peers in a session.
string
Remove peers from a session.
string
required
string
required
Get the representation of a peer within a session.
string
required
string
string
Target peer (what peer_id knows about target).
string
Semantic search query to filter conclusions.
number
Maximum number of conclusions to include.
Search messages in a session.
string
required
string
number
default:"10"
Max results.
Set metadata for a session.
string
string
required
JSON metadata to set (e.g. ’{“key”: “value”}’). Short alias: -d.
Get session summaries (short + long).
string

honcho workspace

List, create, inspect, delete, and search workspaces.
Create or get a workspace.
string
required
string
JSON metadata to associate with the workspace.
Delete a workspace. Use —dry-run first to see what will be deleted.Requires —yes to skip confirmation, or will prompt interactively. If sessions exist, requires —cascade to delete them first.
string
required
boolean
Skip confirmation prompt (for scripted/agent use). Short alias: -y.
boolean
Delete all sessions before deleting the workspace.
boolean
Show what would be deleted without deleting.
Inspect a workspace: peers, sessions, config.
string
List all accessible workspaces.
Get queue processing status.
string
Filter by observer peer.
string
Filter by sender peer.
Search messages across workspace.
string
required
number
default:"10"
Max results.

Workflows

Inspect an unfamiliar workspace

When you pick up a workspace and need to orient — start broad, narrow to the peer and session you care about.
1

Survey the workspace

2

Inspect a specific peer

3

Review the peer's memory

4

Debug a session

honcho session context shows exactly what an agent would receive at inference time — check it before honcho peer chat if a response surprises you.

A peer isn’t learning

If new messages aren’t producing new conclusions, work down the diagnostic ladder.

Session context looks wrong

When an agent’s responses don’t reflect what you expect it to know.

Dialectic returns bad answers

When honcho peer chat or the dialectic API is hallucinating or missing context.

Scripting & automation

Pipe commands into jq for inline transforms, or set HONCHO_* env vars for a CI/CD environment with no config file:
Non-interactive onboarding: