Agents & Harnesses
Configure OpenCode to use the Agentaus API as its model provider.
OpenCode Integration Example
Set up OpenCode following the official docs.
Add the following to your opencode.json:
{
"model": "trellisdata/agentaus.v1",
"provider": {
"trellisdata": {
"name": "Trellis Data",
"options": {
"baseURL": "https://<host>/api/v1",
"apiKey": "<AGENTAUS_API_KEY>"
},
"models": {
"agentaus.v1": {
"name": "Agentaus V1"
}
}
}
}
}The model value is "trellisdata/agentaus.v1" — trellisdata matches the key under provider, and agentaus.v1 must be listed in its models dictionary. agentaus.v1 is the model id returned by List models; name is the label OpenCode shows in its model picker.
The provider's name is how it appears in OpenCode.
Replace <AGENTAUS_API_KEY> with your API key. To keep the key out of the file, use '{env:AGENTAUS_API_KEY}' to read it from an environment variable, or a file reference (e.g. '{file:~/.secrets/agentaus-key}'). If you paste the key in directly, don't commit opencode.json.
Run opencode in your terminal to start.
List models
List Models
Authorization: Bearer <token>. Both paths return the same response. Some clients look for the model list next to the chat endpoint, so use whichever your client expects."list"."agentaus.v1"."model"."trellisdata".curl https://<host>/api/v1/models \ -H "Authorization: Bearer $AGENTAUS_API_KEY"
{
"object": "list",
"data": [
{
"id": "agentaus.v1",
"object": "model",
"created": 1781059264,
"owned_by": "trellisdata"
}
]
}