Repository navigation
Conversation
The add screen lists the subscriptions the add command signs in to, then the providers that take an API key, in a four-across grid the keyboard walks row by row. A key provider asks for its key, sent to the add command on stdin, and links to where the provider hands one out. Device codes are found anywhere in a line, as gh and Kimi print them in a sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchy-agent-account-add now signs in Cursor, Copilot (through gh), Kimi, Muse, Antigravity and Devin, and saves a pasted API key for the key-only providers, checking it with the provider's usage collector. --check lists every provider's state from files alone, without starting a lazy CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…again Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reach Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Follow-up to #14040. The agents panel's add screen could only sign in to Claude Code, Codex and Grok. It now offers every subscription the panel tracks, plus a way to paste an API key for the providers that only take one.
Subscriptions
The add screen lists Claude Code, Codex, Grok, Cursor, Copilot, Kimi, Muse Code, Antigravity and Devin. Picking one runs that agent's own login, installing its CLI first if needed, and the panel follows along:
gh), and the panel finds a device code anywhere in a line (Kimi andghprint it mid-sentence).gh auth login --web, sincegh's token is what both the Copilot CLI and the usage collector read; the Copilot CLI's own keyring login isn't visible to the collector.devin auth loginrefuses without a TTY), so the add command opens a floating terminal and waits, up to 15 minutes, for the sign-in to land.--checkstays fast and never starts a lazy CLI: every signed-in test reads the same file or keyring entry the collector reads.API keys
Z.ai, MiniMax, Synthetic, Ollama Cloud, OpenRouter, DeepSeek, Fireworks, OpenCode and Kimchi take a pasted key, with a link to where each provider hands one out:
apiKeyin~/.config/omarchy/agents/<id>.json(Kimchi: its ownconfig.json, askimchi loginwrites it), merged with whatever else the file holds, written atomically at mode 0600.apiKeyright afterOPENROUTER_API_KEYinstead of last; Z.ai and Ollama already did.Layout
The picker is two labelled groups, Subscriptions and API keys, four across, and the keyboard walks it row by row.
Verification
test/shell.d/agent*-test.shplus the launcher tests pass (56 files) in Pacific/Honolulu and Pacific/Kiritimati, with./test/cliand the i18n structural check.agent-account-test.shcovers--checkfor all 18 providers without starting a CLI, each new sign-in with stub CLIs (stderr passed through, the page opened forghand Muse, the terminal wait finishing and being cancelled), and saving keys (fields kept, mode 0600, the key in no output or argument, a refused key restored). Each collector's test checks its saved key is used, in order.Not verified
No sign-in or key was completed against a real service, so the post-login files and the keyring entries are as each CLI's source writes them. The key pages for Synthetic and Kimchi point at their sites, as neither documents a key page.
🤖 Generated with Claude Code
Posted by Claude on behalf of DHH