| name | coder-workspaces |
| description | Manage Coder workspaces and AI coding agent tasks via CLI. List, create, start, stop, and delete workspaces. SSH into workspaces to run commands. Create and monitor AI coding tasks with Claude Code, Aider, or other agents. |
| metadata | {"openclaw":{"emoji":"🏗️","requires":{"bins":["coder"],"env":["CODER_URL","CODER_SESSION_TOKEN"]}}} |
Coder Workspaces
Manage Coder workspaces and AI coding agent tasks via the coder CLI.
Note: Commands execute within isolated, governed Coder workspaces — not the host system.
Setup
Before using coder CLI, configure authentication:
-
Install the CLI from Coder CLI docs
-
Set environment variables:
export CODER_URL=https://your-coder-instance.com
export CODER_SESSION_TOKEN=<your-token>
-
Test connection:
coder whoami
Workspace Commands
coder list
coder list --all
coder list -o json
coder start <workspace>
coder stop <workspace>
coder restart <workspace> -y
coder delete <workspace> -y
coder ssh <workspace>
coder ssh <workspace> -- <command>
coder logs <workspace>
coder logs <workspace> -f
AI Coding Tasks
Coder Tasks runs AI agents (Claude Code, Aider, etc.) in isolated workspaces.
Creating Tasks
coder tasks create --template <template> --preset "<preset>" "prompt"
- Template: Required. List with
coder templates list
- Preset: May be required. Try without first. If creation fails with "Required parameter not provided", get presets with
coder templates presets list <template> -o json and use the default. If no default, ask user which preset.
Managing Tasks
coder tasks list
coder tasks logs <task-name>
coder tasks connect <task-name>
coder tasks delete <task-name> -y
Task States
- Initializing: Workspace provisioning (timing varies by template)
- Working: Setup script running
- Active: Agent processing prompt
- Idle: Agent waiting for input
Troubleshooting
- CLI not found: See Coder CLI docs
- Auth failed: Verify CODER_URL and CODER_SESSION_TOKEN are set, then run
coder login
- Version mismatch: Reinstall CLI from your Coder instance
More Info