Manage Coder workspaces and AI coding agent tasks from your OpenClaw agent.
- Workspaces: List, create, start, stop, restart, delete
- Remote Commands: SSH into workspaces and run commands
- AI Tasks: Create and manage Coder Tasks with Claude Code, Aider, Goose, etc.
- Access to a Coder deployment (self-hosted or Coder Cloud)
- Coder CLI installed
- Environment variables configured
Install from your Coder instance to ensure version compatibility:
# Visit your instance's CLI page for instructions
# https://your-coder-instance.com/cliOr via Homebrew (may not match server version):
brew install coderSee Coder CLI docs for all options.
Add to your OpenClaw config (~/.openclaw/openclaw.json):
{
"env": {
"CODER_URL": "https://your-coder-deployment.com",
"CODER_SESSION_TOKEN": "your-session-token"
}
}Get a token at https://your-coder-deployment.com/cli-auth or /settings/tokens.
coder login --token "$CODER_SESSION_TOKEN" "$CODER_URL"coder whoamiclawhub install coder-workspacesAsk your OpenClaw agent things like:
- "List my Coder workspaces"
- "Start my dev workspace"
- "Create a task to fix the auth bug"
- "Check status of my running tasks"
- "SSH into backend and run the tests"
MIT