Skip to content

Commit 52fefbd

Browse files
committed
fix: rename provider to augment-code and change default model to gpt-5.2
Rename OpenCode provider from "augment" to "augment-code" across docs, setup script, and config examples. Change default model to gpt-5.2.
1 parent 0c7722c commit 52fefbd

File tree

4 files changed

+34
-36
lines changed

4 files changed

+34
-36
lines changed

CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Provider uses `@ai-sdk/openai-compatible` npm package:
158158
```json
159159
{
160160
"provider": {
161-
"augment": {
161+
"augment-code": {
162162
"npm": "@ai-sdk/openai-compatible",
163163
"name": "Augment Code",
164164
"options": { "baseURL": "http://localhost:8765/v1" },
@@ -306,7 +306,7 @@ The server handles SIGTERM/SIGINT signals gracefully:
306306
|-------|----------|
307307
| "Please run auggie login first" | Run `auggie login` to authenticate |
308308
| Server not responding | Ensure server is running with `npm start` |
309-
| Model not in OpenCode | Check `~/.config/opencode/opencode.json` has augment provider |
309+
| Model not in OpenCode | Check `~/.config/opencode/opencode.json` has augment-code provider |
310310
| "Unknown model" warning | Use correct model ID (e.g., `claude-opus-4.5`, not `opus4.5`) |
311311
| Port already in use | Change port with `PORT=8766 npm start` |
312312

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Add the following to your OpenCode config file at `~/.config/opencode/opencode.j
8080
{
8181
"$schema": "https://opencode.ai/config.json",
8282
"provider": {
83-
"augment": {
83+
"augment-code": {
8484
"npm": "@ai-sdk/openai-compatible",
8585
"name": "Augment Code",
8686
"options": {
@@ -113,7 +113,7 @@ Add the following to your OpenCode config file at `~/.config/opencode/opencode.j
113113
}
114114
```
115115

116-
If you already have an `opencode.json` file, merge the `augment` provider into your existing `provider` section.
116+
If you already have an `opencode.json` file, merge the `augment-code` provider into your existing `provider` section.
117117

118118
### Using with OpenCode
119119

@@ -130,7 +130,7 @@ If you already have an `opencode.json` file, merge the `augment` provider into y
130130
/models
131131
```
132132

133-
3. **Select any `augment/*` model** (e.g., `augment/claude-opus-4.5`)
133+
3. **Select any `augment-code/*` model** (e.g., `augment-code/claude-opus-4.5`)
134134

135135
## Usage
136136

@@ -283,8 +283,8 @@ npm start
283283
### Model not appearing in OpenCode
284284

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

289289
### Wrong model being used
290290

@@ -299,4 +299,3 @@ Check the server logs. If you see "Unknown model" warnings, ensure you're using
299299
## License
300300

301301
MIT
302-

setup.sh

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ echo -e "${YELLOW}Configuring OpenCode...${NC}"
6363
# Create config directory if it doesn't exist
6464
mkdir -p "$OPENCODE_CONFIG_DIR"
6565

66-
# Augment provider configuration - All models
66+
# Augment Code provider configuration - All models
6767
if [ -f "$OPENCODE_CONFIG_FILE" ]; then
68-
# Check if augment provider already exists
69-
if grep -q '"augment"' "$OPENCODE_CONFIG_FILE" 2>/dev/null; then
70-
echo -e "${GREEN}✓ Augment provider already configured in OpenCode${NC}"
68+
# Check if augment-code provider already exists
69+
if grep -q '"augment-code"' "$OPENCODE_CONFIG_FILE" 2>/dev/null; then
70+
echo -e "${GREEN}✓ Augment Code provider already configured in OpenCode${NC}"
7171
else
7272
# Backup existing config
7373
cp "$OPENCODE_CONFIG_FILE" "$OPENCODE_CONFIG_FILE.backup.$(date +%Y%m%d%H%M%S)"
@@ -83,12 +83,12 @@ if (!config.provider) {
8383
config.provider = {};
8484
}
8585
86-
config.provider.augment = {
87-
npm: '@ai-sdk/openai-compatible',
88-
name: 'Augment Code',
89-
options: {
90-
baseURL: 'http://localhost:8765/v1'
91-
},
86+
config.provider["augment-code"] = {
87+
npm: '@ai-sdk/openai-compatible',
88+
name: 'Augment Code',
89+
options: {
90+
baseURL: 'http://localhost:8765/v1'
91+
},
9292
models: {
9393
'claude-opus-4.6': {
9494
name: 'Claude Opus 4.6 (Augment)',
@@ -123,20 +123,20 @@ config.provider.augment = {
123123
limit: { context: 128000, output: 16000 }
124124
}
125125
}
126-
};
126+
};
127127
128-
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
129-
console.log('Configuration merged successfully');
130-
"
131-
echo -e "${GREEN}✓ Augment provider added to existing OpenCode config${NC}"
128+
fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
129+
console.log('Configuration merged successfully');
130+
"
131+
echo -e "${GREEN}✓ Augment Code provider added to existing OpenCode config${NC}"
132132
fi
133133
else
134134
# Create new config file
135135
cat > "$OPENCODE_CONFIG_FILE" << 'EOF'
136136
{
137137
"$schema": "https://opencode.ai/config.json",
138138
"provider": {
139-
"augment": {
139+
"augment-code": {
140140
"npm": "@ai-sdk/openai-compatible",
141141
"name": "Augment Code",
142142
"options": {
@@ -180,7 +180,7 @@ else
180180
}
181181
}
182182
EOF
183-
echo -e "${GREEN}✓ Created new OpenCode config with Augment provider${NC}"
183+
echo -e "${GREEN}✓ Created new OpenCode config with Augment Code provider${NC}"
184184
fi
185185

186186
echo ""
@@ -194,19 +194,18 @@ echo -e " npm start"
194194
echo ""
195195
echo -e "${BLUE}Available models in OpenCode:${NC}"
196196
echo -e " Claude models:"
197-
echo -e " - augment/claude-opus-4.6 (default, recommended)"
198-
echo -e " - augment/claude-opus-4.5"
199-
echo -e " - augment/claude-sonnet-4.5"
200-
echo -e " - augment/claude-sonnet-4"
201-
echo -e " - augment/claude-haiku-4.5"
197+
echo -e " - augment-code/claude-opus-4.6 (default, recommended)"
198+
echo -e " - augment-code/claude-opus-4.5"
199+
echo -e " - augment-code/claude-sonnet-4.5"
200+
echo -e " - augment-code/claude-sonnet-4"
201+
echo -e " - augment-code/claude-haiku-4.5"
202202
echo -e " GPT models:"
203-
echo -e " - augment/gpt-5"
204-
echo -e " - augment/gpt-5.1"
205-
echo -e " - augment/gpt-5.2"
203+
echo -e " - augment-code/gpt-5"
204+
echo -e " - augment-code/gpt-5.1"
205+
echo -e " - augment-code/gpt-5.2"
206206
echo ""
207207
echo -e "${BLUE}To use with OpenCode:${NC}"
208208
echo -e " 1. Start the server (npm start)"
209209
echo -e " 2. Run OpenCode"
210-
echo -e " 3. Type /models and select an augment/* model"
210+
echo -e " 3. Type /models and select an augment-code/* model"
211211
echo ""
212-

src/models.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version": "1.1.0",
3-
"defaultModel": "claude-opus-4.6",
3+
"defaultModel": "gpt-5.2",
44
"models": {
55
"claude-opus-4.6": {
66
"auggie": "opus4.6",

0 commit comments

Comments
 (0)