Coder CLI
$ coder Official High RiskCoder CLI (coder) provisions, inspects, starts, stops, and connects to remote cloud development workspaces backed by Terraform templates. Global --url and --token options plus -o json on coder list and coder show enable clean headless workspace orchestration.
brew install coder Direct coder list -o json inspection and coder ssh <workspace> -- <cmd> remote execution work natively over SSH/CLI without MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o json on list/show/templates, CODER_URL/CODER_SESSION_TOKEN headless auth, and non-interactive coder ssh <ws> -- <cmd>.
-o jsonformatting on workspace queriesCODER_SESSION_TOKEN/--tokenheadless auth
Read-only list/show/whoami are safe, while delete and templates push can destroy cloud workspaces if run without confirmation flags.
- Interactive safeguards on
deleteunless-yis passed - No
--dry-runon workspacecreate/delete
Single Go binary via Homebrew (coder), go install, curl script, and GitHub releases across macOS, Linux, and Windows.
- Homebrew formula
coderand static cross-platform binaries
Full lifecycle for workspaces, SSH config injection, port forwarding, and Terraform template management.
- Unifies
list,create,ssh,port-forward, andtemplates
Official Coder repository (coder/coder) actively maintained under AGPL-3.0.
- Official
coder/coderrepository
Extensive CLI reference under coder.com/docs/reference/cli and coder --help.
- Official Coder CLI reference documentation
Security, Auth & Guardrails
Stores session tokens and deployment URL under --global-config (~/.config/coderv2), or accepts CODER_URL and CODER_SESSION_TOKEN / --token.
AGPL-3.0 open-source core; Coder Enterprise adds commercial governance and HA features.
# Coder CLI Agent Rules - Always verify target workspaces with `coder list -o json` before running `start`, `stop`, `delete`, or `ssh`. - Pass explicit `-- <command>` to `coder ssh` so the session terminates instead of opening an interactive shell.
Agent-Ready Command Recipes
Safe Read-Only Queries
coder list -o json
Outputs workspace names, templates, and build statuses as JSON without modifying environments.
coder whoami
Displays the authenticated user and target Coder deployment URL.
Controlled Writes & Previews
coder ssh my-workspace -- uname -a
Executes a bounded non-interactive command inside the target workspace over SSH.
Strengths for Agents
- + Supports
-o jsonworkspace inspection and non-interactiveCODER_SESSION_TOKENauth. - +
coder ssh <workspace> -- <cmd>executes bounded remote commands cleanly.
Caveats & Pitfalls
- ! Workspace
deleteandtemplates pushcarry high blast radius without--dry-run. - ! Invoking
coder ssh <workspace>without-- <cmd>opens an interactive TTY shell.