Skip to content

Commit 0c7722c

Browse files
hletrdclaude
andcommitted
feat: add Claude Opus 4.6 model support
Add claude-opus-4.6 as the new default model, mapping to Augment's opus4.6 backend. Previous claude-opus-4.5 remains available. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 45dfc1e commit 0c7722c

File tree

5 files changed

+37
-14
lines changed

5 files changed

+37
-14
lines changed

AGENTS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ AI assistant context and working notes for the augment-opencode repository.
1515
**Auggie** refers to the Augment Code CLI tool (`@augmentcode/auggie`), which provides:
1616
- Authentication with Augment Code services (`auggie login`)
1717
- SDK for programmatic access to Augment Code's API
18-
- Access to Claude models (Opus 4.5, Sonnet 4.5, Haiku 4.5) and GPT models (5.x series)
18+
- Access to Claude models (Opus 4.6, Opus 4.5, Sonnet 4.5, Haiku 4.5) and GPT models (5.x series)
1919

2020
This repository wraps the Auggie SDK to provide an OpenAI-compatible HTTP API.
2121

@@ -48,7 +48,8 @@ OpenCode/Client → HTTP (localhost:8765) → server.ts → Auggie SDK → Augme
4848

4949
| Model ID | Backend | Context | Output | Use Case |
5050
|----------|---------|---------|--------|----------|
51-
| `claude-opus-4.5` | Augment | 200K | 32K | Default, most capable |
51+
| `claude-opus-4.6` | Augment | 200K | 32K | Default, most capable |
52+
| `claude-opus-4.5` | Augment | 200K | 32K | Previous Opus generation |
5253
| `claude-sonnet-4.5` | Augment | 200K | 16K | Balanced performance |
5354
| `claude-sonnet-4` | Augment | 200K | 16K | Previous generation |
5455
| `claude-haiku-4.5` | Augment | 200K | 8K | Fastest, lightweight |

CLAUDE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ OpenCode/Client → HTTP Request → src/server.ts (builds to dist/server.js)
4646

4747
| OpenCode Model ID | Auggie Model ID | Context | Output | Description |
4848
|-------------------|-----------------|---------|--------|-------------|
49-
| `claude-opus-4.5` | `opus4.5` | 200K | 32K | **Default**, most capable |
49+
| `claude-opus-4.6` | `opus4.6` | 200K | 32K | **Default**, most capable |
50+
| `claude-opus-4.5` | `opus4.5` | 200K | 32K | Previous Opus generation |
5051
| `claude-sonnet-4.5` | `sonnet4.5` | 200K | 16K | Balanced performance |
5152
| `claude-sonnet-4` | `sonnet4` | 200K | 16K | Previous generation |
5253
| `claude-haiku-4.5` | `haiku4.5` | 200K | 8K | Fastest, lightweight |
@@ -84,10 +85,11 @@ curl -X POST http://localhost:8765/v1/chat/completions \
8485
### Model Mapping (src/server.ts)
8586

8687
```javascript
87-
const DEFAULT_MODEL = 'claude-opus-4.5';
88+
const DEFAULT_MODEL = 'claude-opus-4.6';
8889

8990
const MODEL_MAP = {
9091
// Claude models
92+
'claude-opus-4.6': { auggie: 'opus4.6', name: 'Claude Opus 4.6', context: 200000, output: 32000 },
9193
'claude-opus-4.5': { auggie: 'opus4.5', name: 'Claude Opus 4.5', context: 200000, output: 32000 },
9294
'claude-sonnet-4.5': { auggie: 'sonnet4.5', name: 'Claude Sonnet 4.5', context: 200000, output: 16000 },
9395
'claude-sonnet-4': { auggie: 'sonnet4', name: 'Claude Sonnet 4', context: 200000, output: 16000 },
@@ -161,7 +163,7 @@ Provider uses `@ai-sdk/openai-compatible` npm package:
161163
"name": "Augment Code",
162164
"options": { "baseURL": "http://localhost:8765/v1" },
163165
"models": {
164-
"claude-opus-4.5": { "name": "Claude Opus 4.5 (Augment)", "limit": { "context": 200000, "output": 32000 } }
166+
"claude-opus-4.6": { "name": "Claude Opus 4.6 (Augment)", "limit": { "context": 200000, "output": 32000 } }
165167
}
166168
}
167169
}

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This wrapper allows you to use [OpenCode](https://opencode.ai) or any other Open
88

99
- **OpenAI-compatible API** - Drop-in replacement for OpenAI API
1010
- **Real-time streaming** - True SSE streaming with all ACP protocol update types
11-
- **Multiple models** - Claude Opus 4.5, Sonnet 4.5, Sonnet 4, Haiku 4.5, GPT-5.x
11+
- **Multiple models** - Claude Opus 4.6, Opus 4.5, Sonnet 4.5, Sonnet 4, Haiku 4.5, GPT-5.x
1212
- **Automatic retry** - Exponential backoff for rate limits and transient errors
1313
- **Request validation** - Validates message format and model names
1414
- **Graceful shutdown** - Clean shutdown with connection draining
@@ -87,6 +87,10 @@ Add the following to your OpenCode config file at `~/.config/opencode/opencode.j
8787
"baseURL": "http://localhost:8765/v1"
8888
},
8989
"models": {
90+
"claude-opus-4.6": {
91+
"name": "Claude Opus 4.6 (Augment)",
92+
"limit": { "context": 200000, "output": 32000 }
93+
},
9094
"claude-opus-4.5": {
9195
"name": "Claude Opus 4.5 (Augment)",
9296
"limit": { "context": 200000, "output": 32000 }
@@ -149,11 +153,11 @@ curl http://localhost:8765/health
149153
# List models
150154
curl http://localhost:8765/v1/models
151155

152-
# Chat completion (default: claude-opus-4.5)
156+
# Chat completion (default: claude-opus-4.6)
153157
curl http://localhost:8765/v1/chat/completions \
154158
-H "Content-Type: application/json" \
155159
-d '{
156-
"model": "claude-opus-4.5",
160+
"model": "claude-opus-4.6",
157161
"messages": [{"role": "user", "content": "Hello!"}]
158162
}'
159163

@@ -169,7 +173,7 @@ curl http://localhost:8765/v1/chat/completions \
169173
curl http://localhost:8765/v1/chat/completions \
170174
-H "Content-Type: application/json" \
171175
-d '{
172-
"model": "claude-opus-4.5",
176+
"model": "claude-opus-4.6",
173177
"messages": [{"role": "user", "content": "Hello!"}],
174178
"stream": true
175179
}'
@@ -192,7 +196,8 @@ All models are available simultaneously. Select the model in your API request:
192196

193197
| Model ID | Auggie ID | Description |
194198
|----------|-----------|-------------|
195-
| `claude-opus-4.5` | `opus4.5` | Default, most capable (200K context, 32K output) |
199+
| `claude-opus-4.6` | `opus4.6` | Default, most capable (200K context, 32K output) |
200+
| `claude-opus-4.5` | `opus4.5` | Previous Opus generation (200K context, 32K output) |
196201
| `claude-sonnet-4.5` | `sonnet4.5` | Balanced performance (200K context, 16K output) |
197202
| `claude-sonnet-4` | `sonnet4` | Previous generation (200K context, 16K output) |
198203
| `claude-haiku-4.5` | `haiku4.5` | Fastest, lightweight (200K context, 8K output) |
@@ -279,11 +284,11 @@ npm start
279284

280285
1. Ensure the wrapper server is running
281286
2. Check that `~/.config/opencode/opencode.json` contains the `augment` provider configuration
282-
3. Run `/models` in OpenCode and look for `augment/claude-opus-4.5` (or other models)
287+
3. Run `/models` in OpenCode and look for `augment/claude-opus-4.6` (or other models)
283288

284289
### Wrong model being used
285290

286-
Check the server logs. If you see "Unknown model" warnings, ensure you're using the correct model ID (e.g., `claude-opus-4.5`, not `opus4.5`).
291+
Check the server logs. If you see "Unknown model" warnings, ensure you're using the correct model ID (e.g., `claude-opus-4.6`, not `opus4.6`).
287292

288293
## Documentation
289294

setup.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ config.provider.augment = {
9090
baseURL: 'http://localhost:8765/v1'
9191
},
9292
models: {
93+
'claude-opus-4.6': {
94+
name: 'Claude Opus 4.6 (Augment)',
95+
limit: { context: 200000, output: 32000 }
96+
},
9397
'claude-opus-4.5': {
9498
name: 'Claude Opus 4.5 (Augment)',
9599
limit: { context: 200000, output: 32000 }
@@ -139,6 +143,10 @@ else
139143
"baseURL": "http://localhost:8765/v1"
140144
},
141145
"models": {
146+
"claude-opus-4.6": {
147+
"name": "Claude Opus 4.6 (Augment)",
148+
"limit": { "context": 200000, "output": 32000 }
149+
},
142150
"claude-opus-4.5": {
143151
"name": "Claude Opus 4.5 (Augment)",
144152
"limit": { "context": 200000, "output": 32000 }
@@ -186,7 +194,8 @@ echo -e " npm start"
186194
echo ""
187195
echo -e "${BLUE}Available models in OpenCode:${NC}"
188196
echo -e " Claude models:"
189-
echo -e " - augment/claude-opus-4.5 (default, recommended)"
197+
echo -e " - augment/claude-opus-4.6 (default, recommended)"
198+
echo -e " - augment/claude-opus-4.5"
190199
echo -e " - augment/claude-sonnet-4.5"
191200
echo -e " - augment/claude-sonnet-4"
192201
echo -e " - augment/claude-haiku-4.5"

src/models.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"version": "1.1.0",
3-
"defaultModel": "claude-opus-4.5",
3+
"defaultModel": "claude-opus-4.6",
44
"models": {
5+
"claude-opus-4.6": {
6+
"auggie": "opus4.6",
7+
"name": "Claude Opus 4.6",
8+
"context": 200000,
9+
"output": 32000
10+
},
511
"claude-opus-4.5": {
612
"auggie": "opus4.5",
713
"name": "Claude Opus 4.5",

0 commit comments

Comments
 (0)