docs: change default copilot-cli model to gpt-4.1 (free tier)

Co-authored-by: htekdev <100806365+htekdev@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-01-28 22:22:50 +00:00
parent addd3acc4f
commit c03de80cd4
4 changed files with 25 additions and 17 deletions

View File

@ -35,7 +35,7 @@ moltbot agent --message "hi" --model codex-cli/gpt-5.2-codex
GitHub Copilot CLI works the same way (requires GitHub CLI auth): GitHub Copilot CLI works the same way (requires GitHub CLI auth):
```bash ```bash
moltbot agent --message "hi" --model copilot-cli/gpt-4o moltbot agent --message "hi" --model copilot-cli/gpt-4.1
``` ```
If your gateway runs under launchd/systemd and PATH is minimal, add just the If your gateway runs under launchd/systemd and PATH is minimal, add just the

View File

@ -12,9 +12,12 @@ GitHub Copilot CLI (`copilot`) is GitHub's terminal-based AI assistant. Moltbot
## Prerequisites ## Prerequisites
- **GitHub Copilot subscription** (Individual, Business, or Enterprise) - **GitHub account** (free tier works for `gpt-4.1`)
- **GitHub CLI** (`gh`) authenticated with your GitHub account - **GitHub CLI** (`gh`) authenticated with your GitHub account
Note: `gpt-4.1` is available on the free GitHub tier. Other models like `gpt-4o`, `claude-sonnet-4-5`,
and `claude-opus-4-5` require a paid GitHub Copilot subscription.
## Installation ## Installation
Install the Copilot CLI via npm: Install the Copilot CLI via npm:
@ -48,7 +51,7 @@ gh copilot --help
Use Copilot CLI directly with Moltbot: Use Copilot CLI directly with Moltbot:
```bash ```bash
moltbot agent --message "hi" --model copilot-cli/gpt-4o moltbot agent --message "hi" --model copilot-cli/gpt-4.1
``` ```
## Configuration ## Configuration
@ -80,14 +83,14 @@ Add `copilot-cli` to your fallback list so it only runs when primary models fail
agents: { agents: {
defaults: { defaults: {
model: { model: {
primary: "github-copilot/gpt-4o", primary: "github-copilot/gpt-4.1",
fallbacks: [ fallbacks: [
"copilot-cli/gpt-4o" "copilot-cli/gpt-4.1"
] ]
}, },
models: { models: {
"github-copilot/gpt-4o": { alias: "Copilot" }, "github-copilot/gpt-4.1": { alias: "Copilot" },
"copilot-cli/gpt-4o": {} "copilot-cli/gpt-4.1": {}
} }
} }
} }
@ -96,11 +99,14 @@ Add `copilot-cli` to your fallback list so it only runs when primary models fail
## Supported models ## Supported models
Copilot CLI supports these models (availability depends on your plan): Copilot CLI supports these models (availability depends on your GitHub plan):
- `gpt-4o` **Free tier (GitHub Free):**
- `gpt-4.1` - `gpt-4.1` ← recommended default
- `gpt-4.1-mini` - `gpt-4.1-mini`
**Paid tier (GitHub Copilot subscription):**
- `gpt-4o`
- `gpt-4-turbo` - `gpt-4-turbo`
- `claude-sonnet-4-5` - `claude-sonnet-4-5`
- `claude-opus-4-5` - `claude-opus-4-5`
@ -108,8 +114,9 @@ Copilot CLI supports these models (availability depends on your plan):
Example model refs: Example model refs:
``` ```
copilot-cli/gpt-4o
copilot-cli/gpt-4.1 copilot-cli/gpt-4.1
copilot-cli/gpt-4.1-mini
copilot-cli/gpt-4o
copilot-cli/claude-sonnet-4-5 copilot-cli/claude-sonnet-4-5
``` ```

View File

@ -50,21 +50,21 @@ moltbot models auth login-github-copilot --yes
## Set a default model ## Set a default model
```bash ```bash
moltbot models set github-copilot/gpt-4o moltbot models set github-copilot/gpt-4.1
``` ```
### Config snippet ### Config snippet
```json5 ```json5
{ {
agents: { defaults: { model: { primary: "github-copilot/gpt-4o" } } } agents: { defaults: { model: { primary: "github-copilot/gpt-4.1" } } }
} }
``` ```
## Notes ## Notes
- Requires an interactive TTY; run it directly in a terminal. - Requires an interactive TTY; run it directly in a terminal.
- Copilot model availability depends on your plan; if a model is rejected, try - `gpt-4.1` is available on the free GitHub tier. Other models like `gpt-4o` and
another ID (for example `github-copilot/gpt-4.1`). Claude models require a paid GitHub Copilot subscription.
- The login stores a GitHub token in the auth profile store and exchanges it for a - The login stores a GitHub token in the auth profile store and exchanges it for a
Copilot API token when Moltbot runs. Copilot API token when Moltbot runs.

View File

@ -188,7 +188,7 @@ CLAWDBOT_LIVE_SETUP_TOKEN=1 CLAWDBOT_LIVE_SETUP_TOKEN_PROFILE=anthropic:setup-to
- Overrides (optional): - Overrides (optional):
- `CLAWDBOT_LIVE_CLI_BACKEND_MODEL="claude-cli/claude-opus-4-5"` - `CLAWDBOT_LIVE_CLI_BACKEND_MODEL="claude-cli/claude-opus-4-5"`
- `CLAWDBOT_LIVE_CLI_BACKEND_MODEL="codex-cli/gpt-5.2-codex"` - `CLAWDBOT_LIVE_CLI_BACKEND_MODEL="codex-cli/gpt-5.2-codex"`
- `CLAWDBOT_LIVE_CLI_BACKEND_MODEL="copilot-cli/gpt-4o"` - `CLAWDBOT_LIVE_CLI_BACKEND_MODEL="copilot-cli/gpt-4.1"`
- `CLAWDBOT_LIVE_CLI_BACKEND_COMMAND="/full/path/to/claude"` - `CLAWDBOT_LIVE_CLI_BACKEND_COMMAND="/full/path/to/claude"`
- `CLAWDBOT_LIVE_CLI_BACKEND_ARGS='["-p","--output-format","json","--permission-mode","bypassPermissions"]'` - `CLAWDBOT_LIVE_CLI_BACKEND_ARGS='["-p","--output-format","json","--permission-mode","bypassPermissions"]'`
- `CLAWDBOT_LIVE_CLI_BACKEND_CLEAR_ENV='["ANTHROPIC_API_KEY","ANTHROPIC_API_KEY_OLD"]'` - `CLAWDBOT_LIVE_CLI_BACKEND_CLEAR_ENV='["ANTHROPIC_API_KEY","ANTHROPIC_API_KEY_OLD"]'`
@ -210,11 +210,12 @@ CLAWDBOT_LIVE_CLI_BACKEND=1 \
```bash ```bash
CLAWDBOT_LIVE_CLI_BACKEND=1 \ CLAWDBOT_LIVE_CLI_BACKEND=1 \
CLAWDBOT_LIVE_CLI_BACKEND_MODEL="copilot-cli/gpt-4o" \ CLAWDBOT_LIVE_CLI_BACKEND_MODEL="copilot-cli/gpt-4.1" \
pnpm test:live src/gateway/gateway-cli-backend.live.test.ts pnpm test:live src/gateway/gateway-cli-backend.live.test.ts
``` ```
Note: Copilot CLI requires GitHub CLI auth (`gh auth status`). Output is text-only (no JSON). Note: Copilot CLI requires GitHub CLI auth (`gh auth status`). Output is text-only (no JSON).
`gpt-4.1` is available on GitHub Free tier; other models require a paid subscription.
### Recommended live recipes ### Recommended live recipes