Repository navigation
feat(providers): Claude e OpenAI por chave de API; login por assinatura Claude e Copilot removidos - #75
Open
savass33 wants to merge 8 commits into
Open
feat(providers): Claude e OpenAI por chave de API; login por assinatura Claude e Copilot removidos#75savass33 wants to merge 8 commits into
savass33 wants to merge 8 commits into
Conversation
…ription logins Anthropic does not allow third parties to offer Claude.ai login, and the Claude subscription login used Claude Code's OAuth client id. It is gone: /claude login now connects the user's own Anthropic API key (validated against the Models API, kept only in secure storage, billed by Anthropic), and requests use x-api-key with no OAuth beta header. On startup, stored Claude OAuth logins are removed (API keys and other providers' accounts are kept) and the user sees a one-time notice. Claude subscription usage windows no longer apply to API keys. The GitHub Copilot login (/onboard-github) is unregistered: it used GitHub's Copilot OAuth app and VS Code headers and never served inference in Verboo mode. Stored Copilot tokens are ignored and purged from both the native vault and the plain-text fallback. Codex is unchanged except that third-party providers (Codex and the Anthropic key) now receive only a User-Agent instead of the Verboo session id, x-app and custom headers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/openai login connects the user's own OpenAI API key (validated against the Models API, kept only in secure storage, billed by OpenAI). Chat and reasoning models from api.openai.com/v1/models show up in /model with an openai-api/ prefix, so they never collide with the same GPT model offered through Codex (ChatGPT plan) or the Verboo router; the prefix is stripped before the request. Requests go through the OpenAI-compatible shim with only a User-Agent header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 3, 2026
Found by end-to-end validation of the 0.15.42 integration: - API-key forms no longer cancel on a typed "n", which sent the rest of the key to the main prompt in clear text. Esc during validation no longer saves the key anyway. - A new Anthropic key replaces the stored one; it used to be reported as connected while requests kept using the old key. Logout removes all. - A candidate key never touches the catalog, so a typo no longer breaks the working session and a failed save leaves no unusable models. - Requests on own accounts stop identifying as Claude Code (User-Agent, beta header, attribution block) and carry no device/account/session ids. - A 401 on an own key no longer rotates the Verboo token, fails fast and tells the user how to replace the key. - One malformed account no longer disables every provider's accounts. - Catalog requests have a 10 s timeout, so startup cannot hang on them. - OpenAI-key models use their real limits; /model hides Responses-only and legacy models. /openai logout fails when the vault cannot be read. - The retired-login notice now fits an 80-column footer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found by the human e2e scenarios: - Esc or Ctrl+C on /claude, /openai or /model printed "Interrupted": a dialog waiting for its answer holds the query guard, which looked like a turn. - A key typed as an argument stayed on screen, in history and in the transcript. - A refused entry stayed in the masked field and glued itself to the next paste. - Storage failures showed internal codes; logout claimed to remove a key that did not exist; /claude status still offered to add a second key. - The claude-code beta still went out on agentic queries. - The retired-login notice lost the command when cut on an 80-column footer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clearing the field on every error broke the retry when the API or the keyring is down. Only an entry that was actually refused is cleared. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
savass33
added a commit
that referenced
this pull request
Nov 4, 2026
…fects Merges the own-key fixes from #75. Found by end-to-end validation: - withRetry replaced the ChatGPT and OpenAI limit errors with a generic one, so the dialog only ever opened for Anthropic. - /compact on an exhausted account kept the limit message as the summary and destroyed the conversation context. - A limit hit after tools ran sent the prompt again, repeating their side effects. Now nothing is resent and the dialog says so. When nothing ran, the failed attempt leaves history so the model gets the request once. - The compaction summary, images and task notifications are no longer taken for what the user typed, nor replaced by an older prompt. - The dialog was opened as a hidden slash command, which wiped the prompt draft, polluted history and the transcript, could be shadowed by a skill and broke with --disable-slash-commands. The REPL now renders it directly. - /resume no longer reopens the dialog for an old error. - "Last Verboo model first" tracks a real router model. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
O usuário passa a conectar as próprias contas OpenAI e Anthropic de forma permitida e usa GPT e Claude dentro da Verboo Code CLI.
Claude
/claude loginconecta a chave de API da Anthropic do usuário:GET /v1/models;x-api-key, sem o beta OAuth;claudeNativeOAuth.ts,useClaudeNativeOAuthFlow.ts) eram nossos e foram apagados. As janelas de uso por assinatura não existem para chave de API.OpenAI por chave de API (novo)
/openai login|status|logoutconecta a chave de API da OpenAI do usuário, com a mesma validação e o mesmo armazenamento./modelcom o prefixoopenai-api/. Assim não colidem com o mesmo GPT oferecido pelo Codex ou pelo roteador.Codex
User-Agent, sem o id de sessão,x-appou headers customizados.Copilot
/onboard-githubfoi desregistrado: usava o app OAuth do GitHub Copilot e headers do VS Code, e nunca serviu inferência no modo Verboo.Testes
claudeNativeCredentials.test.tse.retire.test.ts(remoção de OAuth mantendo chave e Codex);claudeLoginRetiredNotice.test.ts;githubModelsCredentials.purge.test.ts;openaiApiModels.test.tseopenaiApiKeyCredentials.test.ts;activeModelIdentity.test.ts./onboard-github).check-cli-quality --suite: 365/365 arquivos, build, self-test e pack;--terminal: 36/36 e2e;verify:privacypassa.Observações
/claude loginvia PTY. Como o Desktop não está em uso, não houve coordenação.🤖 Generated with Claude Code