Feature 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
Feature 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 12345featurebasically the opencode will run and listen provide OpenAI api compatible (especially
http://localhost:12345/v1/chat/completionsendpoint)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 inopencode stats