CLI
Manage agents, sessions, and conversations from the command line.
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.
Install
Section titled “Install”Homebrew (macOS / Linux)
Section titled “Homebrew (macOS / Linux)”brew tap everruns/tapbrew install everrunsFrom the Git repository:
cargo install --git https://github.com/everruns/everruns everruns-cliOr clone and build:
git clone https://github.com/everruns/everruns.gitcd everrunscargo install --path crates/cliVerify
Section titled “Verify”everruns --versionConfigure
Section titled “Configure”The CLI defaults to the Everruns demo instance at https://app.everruns.com/api. Sign in once:
everruns login # opens the browser for OAutheverruns login --token # paste a personal access token instead (SSH, headless)everruns status # show the current user and organizationeverruns whoami # ask the server who you are, and your token's accesslogin --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:
# Per commandeverruns --api-url http://localhost:9300/api agents list
# Per shellexport EVERRUNS_API_URL=http://localhost:9300/apiexport EVERRUNS_API_KEY=evr_pat_... # or run `everruns login`Command surface
Section titled “Command surface”| 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 |
Agents
Section titled “Agents”# Inlineeverruns 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.tomleverruns agents create -f agent.yamleverruns 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.
everruns agents listeverruns agents get agent_...everruns agents delete agent_... --reason "Replaced by a newer agent"Sessions
Section titled “Sessions”everruns sessions create --agent agent_...everruns sessions create --agent agent_... --title "Debug session" --reason "Reproduce ticket 42"
# With session-level overrideseverruns sessions create \ --agent agent_... \ --harness bashkit-worker \ --capability 'web_fetch={"timeout":10}' \ --hint setup_connection=true \ --network-allow api.example.com \ --max-iterations 8Also accepts: --locale, repeatable --tag, --system-prompt, --hints-json, repeatable --network-block, repeatable --secret KEY=VALUE, and budget flags.
everruns sessions listeverruns sessions get session_...everruns chat "Tell me a joke!" --session session_...Options: --timeout <seconds> (default 300), --no-stream to queue without waiting.
Output formats
Section titled “Output formats”Every command accepts -o / --output:
everruns agents list -o jsoneverruns 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.
Platform commands
Section titled “Platform commands”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.
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 baseseverruns 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 @.
Retries
Section titled “Retries”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:
EVERRUNS_IDEMPOTENCY_KEY="nightly-agent-$(date +%F)" everruns agents create --name nightly --system-prompt @./prompt.mdA 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.
Reasons and manager context
Section titled “Reasons and manager context”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.
See also
Section titled “See also”- CLI command reference: every command with its flags and a worked example.
- Use in AI tools: the Everruns plugin teaches coding agents these same commands.
- Automate with the CLI:
jq, quiet mode, scripting patterns. - Define agents as files: file formats for
-f. - SDK: the programmatic equivalent.