Skip to content

Commit 05d351c

Browse files
committed
refactor(cli): remove bundled cli text providers
1 parent 79d6713 commit 05d351c

127 files changed

Lines changed: 88 additions & 8259 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Docs: https://docs.openclaw.ai
3838
- Agents/tool prompts: remove the duplicate in-band tool inventory from agent system prompts so tool-calling models rely on the structured tool definitions as the single source of truth, improving prompt stability and reducing stale tool guidance.
3939
- Agents/cache: diagnostics: add prompt-cache break diagnostics, trace live cache scenarios through embedded runner paths, and show cache reuse explicitly in `openclaw status --verbose`. Thanks @vincentkoc.
4040
- Agents/cache: stabilize cache-relevant system prompt fingerprints by normalizing equivalent structured prompt whitespace, line endings, hook-added system context, and runtime capability ordering so semantically unchanged prompts reuse KV/cache more reliably. Thanks @vincentkoc.
41+
- Providers/CLI: remove bundled CLI text-provider backends and the `agents.defaults.cliBackends` surface, while keeping ACP harness sessions and Gemini media understanding on the native bundled providers.
4142
- Providers/OpenAI Codex: add forward-compat `openai-codex/gpt-5.4-mini` synthesis across provider runtime, model catalog, and model listing so Codex mini works before bundled Pi catalog updates land.
4243
- Providers/OpenAI: add an opt-in GPT personality and move GPT-5 prompt tuning onto provider-owned system-prompt contributions so cache-stable guidance stays above the prompt cache boundary and embedded runner paths reuse the same provider-specific prompt behavior.
4344
- Docs/IRC: replace public IRC hostname examples with `irc.example.com` and recommend private servers for bot coordination while listing common public networks for intentional use.

docs/cli/gateway.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ Notes:
5757
- `--reset`: reset dev config + credentials + sessions + workspace (requires `--dev`).
5858
- `--force`: kill any existing listener on the selected port before starting.
5959
- `--verbose`: verbose logs.
60-
- `--cli-backend-logs`: only show CLI backend logs in the console (and enable stdout/stderr).
6160
- `--ws-log <auto|full|compact>`: websocket log style (default `auto`).
6261
- `--compact`: alias for `--ws-log compact`.
6362
- `--raw-stream`: log raw model stream events to jsonl.

docs/cli/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ Options:
501501
`openrouter-api-key`, `kilocode-api-key`, `litellm-api-key`, `ai-gateway-api-key`,
502502
`cloudflare-ai-gateway-api-key`, `moonshot-api-key`, `moonshot-api-key-cn`,
503503
`kimi-code-api-key`, `synthetic-api-key`, `venice-api-key`, `together-api-key`,
504-
`huggingface-api-key`, `apiKey`, `gemini-api-key`, `google-gemini-cli`, `zai-api-key`,
504+
`huggingface-api-key`, `apiKey`, `gemini-api-key`, `zai-api-key`,
505505
`zai-coding-global`, `zai-coding-cn`, `zai-global`, `zai-cn`, `xiaomi-api-key`,
506506
`minimax-global-oauth`, `minimax-global-api`, `minimax-cn-oauth`, `minimax-cn-api`,
507507
`opencode-zen`, `opencode-go`, `github-copilot`, `copilot-proxy`, `xai-api-key`,
@@ -1353,7 +1353,6 @@ Options:
13531353
- `--reset` (reset dev config + credentials + sessions + workspace)
13541354
- `--force` (kill existing listener on port)
13551355
- `--verbose`
1356-
- `--cli-backend-logs`
13571356
- `--ws-log <auto|full|compact>`
13581357
- `--compact` (alias for `--ws-log compact`)
13591358
- `--raw-stream`

docs/concepts/model-providers.md

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,9 @@ Current bundled examples:
163163
normalization (`input` / `output` and `prompt` / `completion` families), the
164164
shared `openai-responses-defaults` stream family for native OpenAI/Codex
165165
wrappers, and provider-family metadata
166-
- `google` and `google-gemini-cli`: Gemini 3.1 forward-compat fallback,
167-
native Gemini replay validation, bootstrap replay sanitation, tagged
168-
reasoning-output mode, and modern-model matching; Gemini CLI OAuth also owns
169-
auth-profile token formatting, usage-token parsing, and quota endpoint
170-
fetching for usage surfaces
166+
- `google`: Gemini 3.1 forward-compat fallback, native Gemini replay
167+
validation, bootstrap replay sanitation, tagged reasoning-output mode, and
168+
modern-model matching
171169
- `moonshot`: shared transport, plugin-owned thinking payload normalization
172170
- `kilocode`: shared transport, plugin-owned request headers, reasoning payload
173171
normalization, proxy-Gemini thought-signature sanitation, and cache-TTL
@@ -331,21 +329,10 @@ OpenClaw ships with the pi‑ai catalog. These providers require **no**
331329
(or legacy `cached_content`) to forward a provider-native
332330
`cachedContents/...` handle; Gemini cache hits surface as OpenClaw `cacheRead`
333331

334-
### Google Vertex and Gemini CLI
335-
336-
- Providers: `google-vertex`, `google-gemini-cli`
337-
- Auth: Vertex uses gcloud ADC; Gemini CLI uses its OAuth flow
338-
- Caution: Gemini CLI OAuth in OpenClaw is an unofficial integration. Some users have reported Google account restrictions after using third-party clients. Review Google terms and use a non-critical account if you choose to proceed.
339-
- Gemini CLI OAuth is shipped as part of the bundled `google` plugin.
340-
- Install Gemini CLI first:
341-
- `brew install gemini-cli`
342-
- or `npm install -g @google/gemini-cli`
343-
- Enable: `openclaw plugins enable google`
344-
- Login: `openclaw models auth login --provider google-gemini-cli --set-default`
345-
- Default model: `google-gemini-cli/gemini-3.1-pro-preview`
346-
- Note: you do **not** paste a client id or secret into `openclaw.json`. The CLI login flow stores
347-
tokens in auth profiles on the gateway host.
348-
- If requests fail after login, set `GOOGLE_CLOUD_PROJECT` or `GOOGLE_CLOUD_PROJECT_ID` on the gateway host.
332+
### Google Vertex
333+
334+
- Provider: `google-vertex`
335+
- Auth: gcloud ADC
349336
- Gemini CLI JSON replies are parsed from `response`; usage falls back to
350337
`stats`, with `stats.cached` normalized into OpenClaw `cacheRead`.
351338

docs/docs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,6 @@
13601360
"gateway/openai-http-api",
13611361
"gateway/openresponses-http-api",
13621362
"gateway/tools-invoke-http-api",
1363-
"gateway/cli-backends",
13641363
"gateway/local-models"
13651364
]
13661365
},

docs/gateway/cli-backends.md

Lines changed: 0 additions & 287 deletions
This file was deleted.

0 commit comments

Comments
 (0)