Skip to content

[Feature]: Zen as provider for all agents #581

@thepatchworkapp

Description

@thepatchworkapp

Prerequisites

  • I have searched existing issues and discussions to avoid duplicates
  • This feature request is specific to oh-my-opencode (not OpenCode core)
  • I have read the documentation

Problem Description

I am subscribed to the Zen Black plan with OpenCode, and don't have subscriptions to any other providers.

Can you please add a feature that will use the recommended models for all agents, but use Zen for auth instead of the model providers?

If I run the installer with all of the provider options set to "no", I get this:

bunx oh-my-opencode install --no-tui --claude=no --chatgpt=no --gemini=no

...

┌─ Installation Complete ───────────────────┐
│ Configuration Summary                      │
│                                            │
│   ○ Claude                                 │
│   ○ ChatGPT                                │
│   ○ Gemini                                 │
│                                            │
│ ────────────────────────────────────────   │
│                                            │
│ Agent Configuration                        │
│                                            │
│   • Sisyphus     → glm-4.7-free            │
│   • Oracle       → glm-4.7-free            │
│   • Librarian    → glm-4.7-free            │
│   • Frontend     → glm-4.7-free            │
└────────────────────────────────────────────┘

⚠ No model providers configured. Using opencode/glm-4.7-free as fallback.
★ Installation complete!

Proposed Solution

Perhaps in the future I could do:

bunx oh-my-opencode install --no-tui --claude=no --chatgpt=no --gemini=no --zen=yes

Alternatives Considered

No response

Doctor Output (Optional)

bunx oh-my-opencode doctor

 oMoMoMoMo... Doctor 


Installation
────────────────────────────────────────
  ✓ OpenCode Installation → 1.1.6
  ✗ Plugin Registration → OpenCode config file not found

Configuration
────────────────────────────────────────
  ✓ Configuration Validity → Using default configuration

Authentication
────────────────────────────────────────
  ✓ Anthropic (Claude) Auth → Auth plugin available
  ○ OpenAI (ChatGPT) Auth → Auth plugin not installed
  ○ Google (Gemini) Auth → Auth plugin not installed

Dependencies
────────────────────────────────────────
  ✓ AST-Grep CLI → installed
  ⚠ AST-Grep NAPI → Not installed (optional)
  ⚠ Comment Checker → Not installed (optional)

Tools & Servers
────────────────────────────────────────
  ✓ GitHub CLI → 2.83.2 - authenticated as thepatchworkapp
  ✓ LSP Servers → 1/4 servers available
  ✓ Built-in MCP Servers → 2 built-in servers enabled
  ○ User MCP Configuration → No user MCP configuration found

Updates
────────────────────────────────────────
  ✓ Version Status → Up to date (2.14.0)

Summary
────────────────────────────────────────

  8 passed, 1 failed, 2 warnings, 3 skipped
  Total: 14 checks in 1626ms

✗ Issues detected. Please review the errors above.

Additional Context

No response

Feature Type

Configuration Option

Contribution

  • I'm willing to submit a PR for this feature
  • I can help with testing
  • I can help with documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions