docs: bump AI Gateway client modules to latest and remove Coder Tasks refs (#27810)

Updates the AI Gateway client docs under
`docs/ai-coder/ai-gateway/clients/` to reference the latest module
versions on registry.coder.com and removes mentions of Coder Tasks from
those pages.

Uses pessimistic (`~>`) version constraints so users automatically pick
up compatible non-breaking updates within the same major.

### Version bumps

| Module | Old | New |
|---|---|---|
|
[`coder/claude-code`](https://registry.coder.com/modules/coder/claude-code)
| `4.7.3` | `~> 5.2` (latest `5.2.0`) |
|
[`coder-labs/codex`](https://registry.coder.com/modules/coder-labs/codex)
| `~> 5.0` | `~> 5.3` (latest `5.3.0`) |
| [`coder/mux`](https://registry.coder.com/modules/coder/mux) | `~> 1.0`
| `~> 1.5` (latest `1.5.0`) |

### Coder Tasks removal

- `claude-code.md`: removed the *Coder Tasks* example block (v5 of the
module is a major refactor that dropped the `ai_prompt` input and
`task_app_id` output).
- Remaining inputs in the example (`agent_id`, `workdir`,
`enable_ai_gateway`) still match the latest module.
- `codex.md` and `mux.md` did not reference Tasks, so only version bumps
were needed there.

cc @matifali

---------

Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
This commit is contained in:
blinkagent[bot]
2026-08-04 12:09:23 +05:00
committed by GitHub
co-authored by blink-so[bot]
parent 9bab7a8e06
commit 84cdc17602
4 changed files with 10 additions and 32 deletions
@@ -55,36 +55,14 @@ Template admins can pre-configure Claude Code for a seamless experience. Admins
```tf
module "claude-code" {
source = "registry.coder.com/coder/claude-code/coder"
version = "4.7.3"
version = "~> 5.2"
agent_id = coder_agent.main.id
workdir = "/path/to/project" # Set to your project directory
workdir = "/path/to/project" # Set to your project directory
enable_ai_gateway = true
}
```
### Coder Tasks
[Coder Tasks](../../tasks.md) provides a framework for agents to complete background development operations autonomously. Claude Code can be configured in your Tasks automatically:
```tf
resource "coder_ai_task" "task" {
count = data.coder_workspace.me.start_count
app_id = module.claude-code.task_app_id
}
data "coder_task" "me" {}
module "claude-code" {
source = "registry.coder.com/coder/claude-code/coder"
version = "4.7.3"
agent_id = coder_agent.main.id
workdir = "/path/to/project" # Set to your project directory
ai_prompt = data.coder_task.me.prompt
# Route through AI Gateway
enable_ai_gateway = true
}
```
Visit the [Claude Code module on the Coder Registry](https://registry.coder.com/modules/coder/claude-code) for the full list of inputs and outputs.
## VS Code Extension
+3 -3
View File
@@ -98,9 +98,9 @@ For the centralized API key flow, set `enable_ai_gateway`:
```tf
module "codex" {
source = "registry.coder.com/coder-labs/codex/coder"
version = "~> 5.0"
version = "~> 5.3"
agent_id = coder_agent.main.id
workdir = "/path/to/project" # Set to your project directory
workdir = "/path/to/project" # Set to your project directory
enable_ai_gateway = true
}
```
@@ -119,7 +119,7 @@ resource "coder_env" "coder_api_token" {
module "codex" {
source = "registry.coder.com/coder-labs/codex/coder"
version = "~> 5.0"
version = "~> 5.3"
agent_id = coder_agent.main.id
workdir = "/path/to/project" # Set to your project directory
+3 -3
View File
@@ -54,9 +54,9 @@ export ANTHROPIC_API_KEY="<your-coder-api-token>"
export ANTHROPIC_BASE_URL="https://coder.example.com/api/v2/ai-gateway/anthropic"
```
## Running Mux in a Coder workspace
## Run Mux in a Coder workspace
If you want to run Mux inside a Coder workspace (for example, as a Coder app), you can install it with the [Mux module](https://registry.coder.com/modules/coder/mux) and pre-configure AI Gateway via environment variables on the agent:
To run Mux inside a Coder workspace (for example, as a Coder app), you can install it with the [Mux module](https://registry.coder.com/modules/coder/mux) and pre-configure AI Gateway via environment variables on the agent:
```tf
data "coder_workspace" "me" {}
@@ -75,7 +75,7 @@ resource "coder_agent" "main" {
module "mux" {
source = "registry.coder.com/coder/mux/coder"
version = "~> 1.0" # See the module page for the latest version.
version = "~> 1.5"
agent_id = coder_agent.main.id
}
```
+1 -1
View File
@@ -111,7 +111,7 @@ For Claude Code, update the module version in your template:
```tf
module "claude-code" {
source = "registry.coder.com/coder/claude-code/coder"
version = ">= 4.8.0" # Minimum version with pause/resume support
version = ">= 4.8.0, < 5.0.0" # Pause/resume support (Tasks/AgentAPI). Removed in v5.
agent_id = coder_agent.main.id
# ...
}