Skip to content
Docs
GitHub

CLI

Manage agents, sessions, and conversations from the command line.

5 min readEdit on GitHub

Applies toFramework (not available)Self-hostedEverruns Demo

The everruns CLI is a command-line client for the Everruns API. It speaks the same commands agents use through MCP and their shell, so every platform command is available with the same spelling, and it is designed to compose well with shell pipelines.

This page covers installation, configuration, and the command surface. For scripting patterns and jq examples, see Automate with the CLI.

Terminal window
brew tap everruns/tap
brew install everruns

From the Git repository:

Terminal window
cargo install --git https://github.com/everruns/everruns everruns-cli

Or clone and build:

Terminal window
git clone https://github.com/everruns/everruns.git
cd everruns
cargo install --path crates/cli
Terminal window
everruns --version

The CLI defaults to the Everruns demo instance at https://app.everruns.com/api. Sign in once:

Terminal window
everruns login # opens the browser for OAuth
everruns login --token # paste a personal access token instead (SSH, headless)
everruns status # show the current user and organization
everruns whoami # ask the server who you are, and your token's access

login --token accepts a read-only token too, for scripts and CI that only read. everruns whoami then shows Access: read-only (personal access token), and a command that would change something fails with one line:

Error: This personal access token is read-only; this command needs a full-access token.

For a self-hosted deployment, point the CLI at your API first:

Terminal window
# Per command
everruns --api-url http://localhost:9300/api agents list
# Per shell
export EVERRUNS_API_URL=http://localhost:9300/api
export EVERRUNS_API_KEY=evr_pat_... # or run `everruns login`
Group Subcommands
login, logout, status, whoami Sign in, sign out, show the current user and organization, show your token’s access
orgs list organizations, select the active one
agents create, update, import, export, validate, diff, plus the platform commands
sessions create, watch, export, plus the platform commands
chat Send a message and stream the response
files Sync files between a local folder and a session
connections set, list, remove your provider API keys
Every other platform command See Platform commands
Terminal window
# Inline
everruns agents create \
--name "my-agent" \
--system-prompt "You are a helpful assistant." \
--tag production \
--reason "Support pilot"
# From a file (TOML, YAML, JSON, or Markdown front matter)
everruns agents create -f agent.toml
everruns agents create -f agent.yaml
everruns agents create -f agent.md --reason "Import from repo"

If ./agent.toml exists and you don’t pass inline flags, everruns agents create picks it up automatically. The file formats are documented in Define agents as files.

Terminal window
everruns agents list
everruns agents get agent_...
everruns agents delete agent_... --reason "Replaced by a newer agent"
Terminal window
everruns sessions create --agent agent_...
everruns sessions create --agent agent_... --title "Debug session" --reason "Reproduce ticket 42"
# With session-level overrides
everruns sessions create \
--agent agent_... \
--harness bashkit-worker \
--capability 'web_fetch={"timeout":10}' \
--hint setup_connection=true \
--network-allow api.example.com \
--max-iterations 8

Also accepts: --locale, repeatable --tag, --system-prompt, --hints-json, repeatable --network-block, repeatable --secret KEY=VALUE, and budget flags.

Terminal window
everruns sessions list
everruns sessions get session_...
Terminal window
everruns chat "Tell me a joke!" --session session_...

Options: --timeout <seconds> (default 300), --no-stream to queue without waiting.

Every command accepts -o / --output:

Terminal window
everruns agents list -o json
everruns agents list -o yaml

--quiet suppresses headers and prints only the essential identifier, useful for capturing IDs in shell variables.

Output is colored on a terminal and plain when piped. --no-color (or --color never) turns color off, and so do the usual variables: NO_COLOR, CLICOLOR=0 and TERM=dumb. CLICOLOR_FORCE=1 keeps color in piped output.

Every other command comes from the same command contract that agents use in their shell and through MCP execute, so the spelling, flags and validation are identical everywhere. Run everruns --help, everruns <noun> --help or everruns <noun> <verb> --help to browse them, or read the CLI command reference, which is generated from the same help.

Terminal window
everruns agents triggers list --agent-id agent_...
everruns sessions participants add --session session_... --kind agent --agent-id agent_... --reason "Hand off to the reviewer agent"
everruns capabilities list --search web
# Plugins, skills and knowledge bases
everruns plugins install --marketplace-id <marketplace-id> --plugin-name <plugin-name> --reason "Add the release tooling"
everruns skills create --skill-md @./SKILL.md --reason "Share the code-review checklist"
everruns knowledge-bases create --name "Product docs" --description "Published product documentation" --reason "Ground support answers in the docs"

These commands print the command’s JSON output (YAML with -o yaml). A text or JSON flag written @path is read from that local file, as in --skill-md @./SKILL.md; write @@ for a value that really starts with @.

Platform commands are safe to retry. The CLI retries a dropped connection or a gateway error itself, and the server runs a create or update at most once for the same request. A script that re-runs a whole command can get the same guarantee by setting a key it reuses for that one command:

Terminal window
EVERRUNS_IDEMPOTENCY_KEY="nightly-agent-$(date +%F)" everruns agents create --name nightly --system-prompt @./prompt.md

A repeat with the same key returns the first result. Reusing a key for a different request is an error, so use one key per command.

Every command that changes something takes --reason "...", which is stored on the changed entity’s history entry. That includes agents create, agents update, agents import and sessions create. Platform commands also take --context-revision N, which says which revision of the entity’s manager notes you read. everruns history list <id> shows who changed an entity and why. everruns context get <id> shows its notes. See Change history.