Based on the tool’s documented custom-provider setup. Live AsterWise compatibility has not yet been tested for this tool.
Which API does this use?
This guide selects Chat Completions through theopenai-compatible package. The base URL is https://api.asterwise.dev/v1. The client builds the full endpoint: https://api.asterwise.dev/v1/chat/completions.
The model name chooses AsterCode or AsterWork, not the protocol. Use the base URL in the configuration below, rather than the full endpoint.
1. Set your API key
2. Choose the configuration for your version
Checkopencode --version. Create or edit opencode.json in your project, merging these fields with existing settings. The key stays in your environment.
- OpenCode v1
- OpenCode v2
provider schema with v2 providers.
3. Start OpenCode
Runopencode from that project in the same terminal. Enter /models and select AsterCode under AsterWise.
Before your first request, configure model context and output limits from the app’s Setup page rather than assuming OpenCode’s defaults match the service.