Setup
We use the custom provider option from opencode to integrate with Portkey.- In your OpenCode settings (usually located at
~/.config/opencode/opencode.jsonin macos, check https://opencode.ai/docs/config/#locations) configure the following:
your-integration-name is the name of the integration you have configured in Portkey and your-model-name is the name of the model you are using.
-
Start opencode and execute the
/connectcommand and select Portkey as the provider (if you are prompted for api key you can enter a dummy string) -
Youβre all set. You can now track costs in your Portkey dashboard and monitor your usage in real time.

Portkey is now PRISMA AIRS AI Gateway. See it in action.
Contact Us

