Skip to content

[FEATURE]: opencode proxy #9736

@win-t

Description

@win-t

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I'm amazed by how many providers are supported by opencode

So I'm thinking about adding opencode proxy --port 12345 feature

basically the opencode will run and listen provide OpenAI api compatible (especially http://localhost:12345/v1/chat/completions endpoint)

This proxy will use the authentication that is already configured for opencode (and ignore any auth sent to localhost:12345). The usage and cost tracking should also be reflected in opencode stats

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions