Skip to content

Add openzoo as a coding agent option: claude code, no api key, pays per call - #8487

Open
staccDOTsol wants to merge 17 commits into
omacom:quattrofrom
staccDOTsol:openzoo-agent
Open

staccDOTsol wants to merge 17 commits into
omacom:quattrofrom
staccDOTsol:openzoo-agent

Conversation

@staccDOTsol

Copy link
Copy Markdown

what

adds openzoo as a coding agent option. it's claude code pointed at a pay per call gateway instead of an api key: no account, no subscription, no signup wall on a fresh install. your wallet signs, x402 settles on chain, the model answers. 435 models behind one endpoint.

why this belongs in the list

every other agent in this menu stops on first launch and asks for an api key or a login. openzoo is the one that doesn't, which felt like the most omarchy shaped gap in the lineup. a sovereign machine shouldn't have to phone home for a login to get work done.

category precedent is already in the tree: ori is openrouter's own agent (#7709, it even uses openrouter's glyph). openzoo is the same category with the account removed. pricing is a law, not a rate card: cost plus a third of whatever the compression layer saved you, hard capped at openrouter's list price. worst case you pay what you'd have paid anyway.

the diff

follows the same template as #6900 and #7709, nothing invented:

  • bin/omarchy-agent: launch case, openzoo claude --permission-mode auto (claude's flags, since that's the TUI it drives)
  • bin/omarchy-default-agent: agent_package="npm:openzoo", lazy installed via mise like the rest
  • default/omarchy/omarchy-menu.jsonc: agent entry, plus a Setup > openzoo group (Balance, Deposit Address, Bound Corpora). every entry is read only and the whole group is gated on omarchy-cmd-present openzoo, so it's invisible unless you picked the agent
  • bin/omarchy-remove-preinstalls: stub stripped on factory reset, same as ori and friends
  • test/shell.d/menu-test.sh: expectedAgents updated, sort order respected

+26 / -4 across five files. menu tests 121/121, full suite green, zero introduced failures.

tested

daily driven on a real quattro install for a day. installed through this exact flow (Setup > Default > Agent > openzoo), funded the wallet from the menu, ran real sessions. every payment lands as a public tx, so the receipts for "it actually works" are on chain rather than my word: 691 settled payments in the 60 hours before this PR.

there's also a bar widget (live spend on the bar plus an ask box) but that ships through the plugin system, omarchy plugin add, and is deliberately not part of this PR. the agent list entry stands alone.

happy to rework anything that doesn't fit the house style, kind ser.

🤖 Generated with Claude Code

@staccDOTsol
staccDOTsol marked this pull request as ready for review August 27, 2026 00:21
Copilot AI balanced review requested due to automatic review settings August 27, 2026 00:21
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds openzoo as a mise-installed coding agent with pay-per-call wallet utilities.

Changes:

  • Adds openzoo installation and launch routing.
  • Adds agent selection and wallet menu entries.
  • Updates reset behavior and menu expectations.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
bin/omarchy-agent Launches openzoo’s Claude client.
bin/omarchy-default-agent Installs and selects openzoo.
bin/omarchy-remove-preinstalls Removes the openzoo stub.
default/omarchy/omarchy-menu.jsonc Adds agent and wallet menu entries.
test/shell.d/menu-test.sh Adds the agent menu expectation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread default/omarchy/omarchy-menu.jsonc Resolved
Comment thread test/shell.d/menu-test.sh Resolved
@staccDOTsol
staccDOTsol force-pushed the openzoo-agent branch 3 times, most recently from 213ae8b to 4d5b444 Compare September 1, 2026 17:06
Every other agent in the picker is a vendor CLI that stops on first launch
and asks for an API key. openzoo is Claude Code pointed at a pay-per-call
gateway instead: no account, no key, no signup wall on a fresh install.

- omarchy-default-agent: openzoo -> npm:openzoo via mise, like grok/omp
- omarchy-agent: launches 'openzoo claude --permission-mode auto'
- menu entry between OpenCode and Pi (agents sort case-insensitively by label)
- menu-test: added to expectedAgents and the sort assertion

Co-Authored-By: Claude Opus 5 <[email protected]>
@staccDOTsol

Copy link
Copy Markdown
Author

Rebased onto quattro — the branch this was written against had drifted (master briefly replaced the jsonc menu entirely; quattro restored the agent system, so the original shape fits again). Now a single commit carrying the same five files: the openzoo entry in omarchy-default-agent (still plain npm:openzoo, not @latest — pinning breaks mise's reinstall detection without a TTY), the picker entry in omarchy-menu.jsonc, and menu-test.sh updated with the union of the new Hermes entry and openzoo, keeping the alphabetical-sort assertion honest. Conflict-free against current quattro.

… per call via openzoo' instead of 'Waiting for auth'

openzoo runs the real Claude Code CLI against a pay-per-call proxy, so
there is never an Anthropic OAuth token and never a limit bucket. The
collector reported that as 'Waiting for auth', which reads as a broken
sign-in on a machine where nothing is wrong.
@staccDOTsol

Copy link
Copy Markdown
Author

One small follow-up commit (6aa4938), scoped to the same concern: with openzoo as the default agent, the agents panel's Claude card read "Waiting for auth" forever — the CLI is real but is never signed in to Anthropic, because each call is paid over x402 through the local proxy. The collector now says "Paid per call via openzoo" in that state (and points at the bar widget for spend) instead of describing a healthy machine as a broken sign-in. No change when openzoo is not the default agent.

cursoragent and others added 2 commits September 9, 2026 17:55
quattro added Muse Code, Cursor CLI, and OpenClaw to the agent picker
after this branch last rebased, which conflicted in omarchy-default-agent
and the menu sort assertion. Keep those new agents and put openzoo back
in the same menu/install/launch slots.

Co-authored-by: Jarett Dunn <[email protected]>
Match the house style for other picker agents: install/launch/bypass,
Remove Preinstalls, and the agents-panel status when Claude has no
Anthropic token because openzoo is paying per call.

Co-authored-by: Jarett Dunn <[email protected]>
Keep the openzoo menu entry, npm install, launcher, and Claude usage
status alongside the coding agents quattro added since the last merge.

Co-authored-by: Jarett Dunn <[email protected]>
@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[High impact] The PR adds an optional agent path that can spend from a local wallet.

Do not merge yet: automatic switching can still select a Claude account that has no sign-in token.

Findings

  1. P1 Switching picks signed-out accounts ▶
  2. P2 Payment text stays English ▶

Summary

Adds openzoo as a selectable coding agent.

  • Omarchy can launch Claude Code through openzoo as a default agent.
  • Claude usage status reflects when openzoo pays for the primary home.

The six unnumbered prior threads were resolved without explanatory replies. Current code addresses their reported concerns: the menu label exists, user-installed openzoo is preserved, separate Claude accounts keep their sign-in status, managed tool settings are present, and the exact-count and repeated-declaration checks are gone.

Reviews (14) · Last reviewed commit: "Merge remote-tracking branch 'upstream/q..." · Reviewed by Greptile

Comment thread default/omarchy/omarchy-menu.jsonc Resolved
Comment thread bin/omarchy-remove-preinstalls Resolved
Comment thread bin/omarchy-agent-usage-claude Resolved
Comment thread bin/omarchy-default-agent Resolved
cursoragent and others added 2 commits November 6, 2026 16:40
Mirror the openzoo agent row in the English menu catalog. Leave a user's
~/.local/bin/openzoo in place on Remove Preinstalls. Keep Waiting for auth
and Sign-in expired on a registered Claude account when openzoo is the
default agent. Declare npm:openzoo as a lazy mise tool that updates every
four hours.

Co-authored-by: Jarett Dunn <[email protected]>
Catch the openzoo agent branch up with quattro: OEM Snapdragon firmware,
the Superwhisper migration shortcut, and Osaka Jade's own repo.
Co-authored-by: Jarett Dunn <[email protected]>
Comment thread test/shell.d/default-agent-test.sh Resolved
cursoragent and others added 3 commits November 6, 2026 17:26
Check each agent declaration, including openzoo, for lazy install and
auto_update = "4h" without failing when an unrelated tool is added.

Co-authored-by: Jarett Dunn <[email protected]>
Comment thread test/shell.d/default-agent-test.sh Resolved
The declared_bins entry only compared omarchy-tools.toml with the same
settings written in the test. Selection, install, and launch coverage
for openzoo stays.

Co-authored-by: Jarett Dunn <[email protected]>
staccDOTsol and others added 2 commits November 6, 2026 16:09
Bring in the Anduril BlueChip UCM profile and the NVIDIA app setup removal.
Co-authored-by: Jarett Dunn <[email protected]>
Comment on lines +643 to +644
result["usageStatusText"] = "Paid per call via openzoo"
result["authHelpText"] = "No Anthropic sign-in: openzoo pays each call over x402 from a local wallet. Spend shows in the openzoo bar widget."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Payment text stays English

The new status and help text appear in English even when the user chose another language. statusDisplayText() and helpDisplayText() do not recognize either string, so they return them unchanged.

The translation guide requires shell text to have English catalog entries and be translated where it is displayed. Add those entries and map both strings in the panel before merging to satisfy this repository requirement.

File Used: docs/i18n.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Catch the openzoo agent branch up with quattro through the pointer-startup fix.
Co-authored-by: Jarett Dunn <[email protected]>
@greptile-apps

greptile-apps Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Want your agent to iterate on Greptile's feedback? Try greploops.

Keep the openzoo harness menu entry, npm install, and launcher.

Co-authored-by: Jarett Dunn <[email protected]>
Comment on lines +642 to +644
if pay_per_call:
result["usageStatusText"] = "Paid per call via openzoo"
result["authHelpText"] = "No Anthropic sign-in: openzoo pays each call over x402 from a local wallet. Spend shows in the openzoo bar widget."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Switching picks signed-out accounts

When the primary Claude account has lost its token but still has cached limits, selecting openzoo changes its status from Waiting for auth to Paid per call via openzoo without clearing those limits. usage_by_account() excludes signed-out accounts only by the old status. Automatic switching can therefore select this signed-out account, leaving the next Claude session needing a login.

Keep accounts with missing tokens out of Claude account switching, or return no subscription limits for the paid-per-call case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants