Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Coder CLI

$ coder Official High Risk
Coder · Workspace & SaaS · AGPL-3.0 · macos / linux / windows

Coder 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.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install coder
CLI vs MCP Decision CLI Preferred vs MCP

Direct coder list -o json inspection and coder ssh <workspace> -- <cmd> remote execution work natively over SSH/CLI without MCP.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports -o json on list/show/templates, CODER_URL/CODER_SESSION_TOKEN headless auth, and non-interactive coder ssh <ws> -- <cmd>.

  • -o json formatting on workspace queries
  • CODER_SESSION_TOKEN / --token headless auth
Trust & Safety 20 / 25

Read-only list/show/whoami are safe, while delete and templates push can destroy cloud workspaces if run without confirmation flags.

  • Interactive safeguards on delete unless -y is passed
  • No --dry-run on workspace create/delete
Setup & Portability 13 / 15

Single Go binary via Homebrew (coder), go install, curl script, and GitHub releases across macOS, Linux, and Windows.

  • Homebrew formula coder and static cross-platform binaries
Utility & Efficiency 13 / 15

Full lifecycle for workspaces, SSH config injection, port forwarding, and Terraform template management.

  • Unifies list, create, ssh, port-forward, and templates
Maintenance & Lineage 9 / 10

Official Coder repository (coder/coder) actively maintained under AGPL-3.0.

  • Official coder/coder repository
Docs & Verifiability 7 / 10

Extensive CLI reference under coder.com/docs/reference/cli and coder --help.

  • Official Coder CLI reference documentation

Security, Auth & Guardrails

Auth Modes
OAuth Browser Env API Key Config File
Credential Storage

Stores session tokens and deployment URL under --global-config (~/.config/coderv2), or accepts CODER_URL and CODER_SESSION_TOKEN / --token.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

AGPL-3.0 open-source core; Coder Enterprise adds commercial governance and HA features.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List Coder workspaces in JSON
coder list -o json

Outputs workspace names, templates, and build statuses as JSON without modifying environments.

Show current Coder user and deployment info
coder whoami

Displays the authenticated user and target Coder deployment URL.

Controlled Writes & Previews

Run a single remote command via coder ssh
coder ssh my-workspace -- uname -a

Executes a bounded non-interactive command inside the target workspace over SSH.

Strengths for Agents

  • + Supports -o json workspace inspection and non-interactive CODER_SESSION_TOKEN auth.
  • + coder ssh <workspace> -- <cmd> executes bounded remote commands cleanly.

Caveats & Pitfalls

  • ! Workspace delete and templates push carry high blast radius without --dry-run.
  • ! Invoking coder ssh <workspace> without -- <cmd> opens an interactive TTY shell.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI