~/.config/opencode/opencode.json and authenticating with your Routeway API key inside OpenCode.
Requires a valid Routeway API key. Get yours from the dashboard.
Setup
Install OpenCode
Follow the official installation docs at opencode.ai.
Add Routeway as a custom provider
Open
~/.config/opencode/opencode.json and configure a custom provider named routeway:This example registers
gpt-4.1, but you can add any Routeway model. For agentic coding, prefer models with tools support — browse at routeway.ai/models.Connect your API key in OpenCode
Start OpenCode in your project directory:Then run:In the provider list:
- Select Routeway
- Paste your Routeway API key
- Save the credential
Reference
| Setting | Value |
|---|---|
| Config file | ~/.config/opencode/opencode.json |
| Base URL | https://api.routeway.ai/v1 |
| Provider name | routeway |
| Example model | gpt-4.1 |
Example Prompts
Try these once you’re connected:- “Summarize this repository: structure, build system, and entry points.”
- “Find where feature X is implemented and list the relevant files.”
- “Run tests and fix the first failing test.”
- “Refactor module Y and update all call sites.”