Skip to content

Implement simpler provider configuration #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
5 tasks
kujtimiihoxha opened this issue Apr 27, 2025 · 1 comment
Open
5 tasks

Implement simpler provider configuration #93

kujtimiihoxha opened this issue Apr 27, 2025 · 1 comment

Comments

@kujtimiihoxha
Copy link
Collaborator

kujtimiihoxha commented Apr 27, 2025

Implement a way to add openai compatible APIs without code changes.

Should allow us to add

  • Local models
  • xAi
  • OpenRouter
  • Deepseek
  • ... Many others
@kujtimiihoxha
Copy link
Collaborator Author

Working on something that allows you to basically configure

{
  "$schema": "./opencode-schema.json",
  "lsp": {
    "gopls": {
      "command": "gopls"
    }
  },
  "agents": {
    "coder": {
      "model": "grok-3-beta",
      "provider": "xai"
    }
  },
  "providers": {
    "xai": {
      "type": "openai",
      "baseUrl": "https://api.x.ai/v1",
      "apiKey": "*******"
    }
  }
}

And it would work

Image

This won't count token expenses because those need to be configured but the configuration allows you to do that too.

I think what I will do is add a bunch of providers out of the box (with pre configured models) but any openai compatible endpoint should be able to be setup using the configuration above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant