Client connections
Connect your preferred coding harness through the OpenAI-compatible API.
Connect a client to Fossa through its custom OpenAI-compatible endpoint settings. These guides cover hosted chat and tool requests. The hosted API signs bookings and forwards inference using your Fossa account wallet.
We recommend the OpenCode plugin for integrated price, speed, model-version, wallet, and recovery controls. A generic endpoint connection does not add these controls to another client. Some clients can send fixed Fossa filters; a native plugin can expose them interactively and manage the protocol workflow.
API setup
Sign in to Fossa and deposit funds into your account. The service handles protocol funding and can convert USDC to SOL for network fees when needed.
Use these connection settings:
| Setting | Value |
|---|---|
| Base URL | https://api.fossa.ag/v1 |
| API key | Copy a key from Profile then API Keys. |
| Model | An exact ID from the model list. |
| API format | Chat Completions. |
Replace MODEL_ID in each guide with your selected ID. Use a model with tool support for agent tasks. Set context and output limits from its published capabilities, leaving room for input and output together.
The current API accepts text and supported tool calls. Other API formats and image, audio, or video bodies are unsupported. An API key authorizes inference spending from its account; keep it private.
Clients
More control
The API’s routing fields support provider price caps, minimum speed, checkpoint, variant, modalities, token bounds, data retention, and maximum request spend. These settings must reach Fossa in the request’s fossa object. A client’s own price display, context setting, or speed preference does not automatically configure them. Website and OpenCode preferences do not carry over to other clients.
Some clients accept extra request-body fields. That can supply fixed filters without a plugin. Interactive Fossa controls, local signing, wallet management, and recovery require a native integration. We recommend the OpenCode plugin because it already provides that workflow.
Build your own
Use the API to add Fossa routing controls while the hosted service handles bookings and inference forwarding. Use the CLI for protocol operations and the Rust SDK to construct instructions for an integration that signs locally and sends authorized requests directly to providers.
These interfaces let you build a plugin for your preferred client. The client repository contains the maintained OpenCode integration. A native integration should preserve request limits, wallet authorization, and recovery of uncertain bookings.
You can also self-host the indexer for protocol data and signed-transaction relay. It keeps wallet signing in the client and does not provide a hosted inference gateway.
Last updated: 13 November 2026. Each client guide links to the official configuration documentation reviewed for that guide. Read it for options specific to your client and release.