← 返回
开发者工具 Key

Coder Workspaces

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.
通过 CLI 管理 Coder 工作区和 AI 编程代理任务。支持列出、创建、启停及删除工作区,通过 SSH 连接执行命令,以及使用 Claude Code、Aider 等代理创建和监控 AI 编程任务。
developmentcats
开发者工具 clawhub v1.5.5 1 版本 99260 Key: 需要
★ 3
Stars
📥 5,171
下载
💾 588
安装
1
版本
#latest

概述

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:

  1. Install the CLI from Coder CLI docs
  1. Set environment variables:

```bash

export CODER_URL=https://your-coder-instance.com

export CODER_SESSION_TOKEN= # Get from /cli-auth

```

  1. Test connection:

```bash

coder whoami

```

Workspace Commands

coder list                              # List workspaces
coder list --all                        # Include stopped
coder list -o json                      # JSON output

coder start <workspace>
coder stop <workspace>
coder restart <workspace> -y
coder delete <workspace> -y

coder ssh <workspace>                   # Interactive shell
coder ssh <workspace> -- <command>      # Run command in workspace

coder logs <workspace>
coder logs <workspace> -f               # Follow logs

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