DevStation CLI

CLI Reference

Every command, flag and environment variable, and every file the CLI writes.

Commands

CommandWhat it does
devstationStart a session and talk to it.
devstation run <goal>Do one thing and stop.
devstation repo <owner/name> <goal>Work on a GitHub repository and propose a pull request.
devstation resume [id] [note]Carry on from a stopped or crashed run.
devstation status [id] [-f]Show what a run is doing. -f follows it.
devstation sessionsList runs in this workspace.
devstation undoRewind the last agent checkpoint.
devstation checkpointsList the checkpoints it can rewind to.
devstation diffShow what the agent has changed.
devstation indexIndex this project so the agent can search it.
devstation memoryShow what it has been told about this project.
devstation mcpThe MCP servers configured here, and their tools.
devstation toolsList the tools it can use, and which ones ask first.
devstation login [provider]Choose a provider, store its key, pick a model.
devstation logout [provider]Remove stored keys.
devstation configShow the settings a run would use. Also set, get, unset, path.
devstation upgrade [--check]Update to the latest version, or only check.
devstation doctorCheck this machine is set up to run it.
devstation versionPrint the version.
devstation helpThe summary.

Flags

FlagWhat it does
-C, --root <dir>Work somewhere other than the current directory.
--model <name>Override the model for this run.
--autonomy <mode>ask_sensitive | ask_integrations | ask_deploy | autonomous
--max-steps <n>Stop after n tool calls.
--budget <usd>Stop before a turn that would exceed this.
-y, --yesApprove every gated action without asking. Critical still asks.
-f, --followKeep watching (status only).
--session <id>Choose the run to act on.
--jsonJSON output from config, sessions, checkpoints and tools.
--no-sandboxRun commands on this machine instead of in a container.
--projectWith config set or unset: write this workspace's config, not the global one.
-h, --helpShow help.
-v, --versionPrint the version.

--json is honoured by the four commands that report rather than act: config, sessions, checkpoints and tools. Use it from scripts; the human output is not a stable format.

Environment variables

Models

VariableWhat it does
ANTHROPIC_API_KEYAnthropic key.
OPENROUTER_API_KEYOpenRouter key.
OPENAI_API_KEYOpenAI, or OpenAI-compatible server, key.
DEVSTATION_PROVIDERanthropic | openrouter | openai
DEVSTATION_MODELThe model, overriding config files.
DEVSTATION_BASE_URLThe endpoint, overriding config files.
ANTHROPIC_MODEL / AI_MODELOverride the model without a flag.
DEVSTATION_MAX_TOKENSReply ceiling per request (default 16,000).
ANTHROPIC_MAX_TOKENSCap the reply length.
ANTHROPIC_EFFORT / AI_REASONINGReasoning effort, for models that take one.
AGENT_INPUT_COST, AGENT_OUTPUT_COSTPer-million-token rates used by --budget.
AGENT_CACHE_READ_COST, AGENT_CACHE_WRITE_COSTCache rates used by --budget.

Sandbox

VariableWhat it does
DEVSTATION_SANDBOX=offRun commands on this machine. Same as --no-sandbox.
DEVSTATION_SANDBOX_NETWORK=offCut the container off from the internet.
DEVSTATION_SANDBOX_RUNTIMErunc, where gVisor is unavailable.
DEVSTATION_SANDBOX_IMAGEUse a different sandbox image.

Everything else

VariableWhat it does
GITHUB_TOKEN or GH_TOKENNeeded by devstation repo, with push rights.
DEVSTATION_NO_UPDATE_CHECK=1Turn off the daily update check.
DEVSTATION_INSTALL_DIRWhere the install script puts the binary.
DEVSTATION_VERSIONWhich release the install script fetches.

Files it writes

Inside the workspace, and nowhere else:

text
.agent/sessions/ run records, written after every message
.agent/memory.db the search index
.agent/PROJECT_MEMORY.md what it has been told (unless one exists at the root)
.agent/.gitignore ignores itself, so none of it reaches your history
.devstation/checkpoints/ snapshot undo history, when there is no git
.devstation/repos/ repositories cloned by devstation repo
.devstation/config.json per-project settings, if you set any
.devstation/mcp.json per-project MCP servers, if you add them
.devstation/skills/ per-project skills, if you add them

In your home directory:

text
~/.devstation/config.json global settings, after login
~/.devstation/credentials.json API keys, readable only by you
~/.devstation/mcp.json global MCP servers, if you add them
~/.devstation/skills/ global skills, if you add them
~/.devstation/bin/devstation the binary, if you used the install script
DevStation
Loading console…