Connect a local model server¶
Start your model server and load the model before configuring Colossus. Generation
requires a compatible POST /v1/chat/completions endpoint. Catalog discovery and the
provider readiness check use GET /v1/models. Ollama, LM Studio, and vLLM can expose
these APIs, with support depending on the server version, model, and enabled features.
Create a workspace-local configuration¶
From the workspace folder, replace MODEL_ID with the exact ID loaded by an
unauthenticated Ollama server on its default port.
Use --preset lmstudio for LM Studio on its default port. If your server uses a
different address, set --base-url to its API base URL, including /v1. Setup
skips catalog discovery when you supply --model. It creates .colossus/config.yaml
and refuses to replace an existing file. To update an existing configuration, use
the YAML instructions below.
Review colossus config effective before giving the agent work. Setup uses the
standard full-access and plaintext-storage defaults. Choose the appropriate
access settings, sandbox,
and storage for the workspace.
provider doctor checks the catalog endpoint. models doctor checks whether the
configured model can generate a response with one bounded request. Check each
report's ready field.
Configure the loopback route¶
Use an existing schema version 3 configuration or create one with colossus config init.
Have the exact model ID, context and output limits, and supported features available.
The example assumes an unauthenticated server at http://127.0.0.1:11434/v1.
Confirm the server's actual bind address and port first.
Run colossus -w . config effective and edit the reported resolution.configPath.
Keep storage and your other settings. Merge these provider and model profiles into
the existing maps, set models.roles.primary to local, and retain any other model
roles and sandbox destinations. Replace local-model and the example limits with
the exact loaded model's values.
schemaVersion: 3
providers:
profiles:
local-provider:
kind: open_ai_compatible
baseUrl: http://127.0.0.1:11434/v1
credentialReference: null
chatCompletionsOutputTokenParameter: max_tokens
models:
profiles:
local:
providerProfile: local-provider
model: local-model
contextWindowTokens: 32768
maxOutputTokens: 4096
capabilities:
toolCalls: true
streaming: true
roles:
primary: local
sandbox:
networkDestinations:
- http://127.0.0.1:11434
Enable toolCalls only when both the server and model handle function tools and
tool history correctly. Enable streaming only when the server implements streaming
Chat Completions. Set unsupported capabilities to false.
You manage this server's lifecycle. credentialReference: null means no
authentication. A Desktop or other embedding host may manage a server and inject a
host:IDENTIFIER credential; the standard CLI does not resolve host: credentials.
The example sends max_tokens. Use max_completion_tokens when the server requires
it, or omit when it rejects both limit fields. maxOutputTokens remains Colossus's
output reservation in every mode.
Check the local model¶
colossus -w . models route primary
colossus -w . provider models local-provider
colossus -w . provider doctor local-provider
colossus -w . models doctor local
The primary role should resolve to local, and the catalog should contain the loaded
model's exact ID. After both diagnostics succeed, send a small test request:
If the server is stopped, provider doctor local-provider reports "ready": false.
Restart the server, reload the model, and rerun both diagnostics before submitting
more work.
Troubleshoot the server¶
- Connection refused: start the server and check its bind address and port, then
rerun
provider doctor local-provider. - HTTP 503 while loading: Colossus follows the
automatic provider retry policy.
If it still fails, wait for the server to report readiness and rerun
models doctor localbefore resubmitting the test request. - HTTP 400 or malformed response: check the exact model ID, catalog and Chat
Completions compatibility. Correct the output-token parameter or disable unsupported
tool-call and streaming capabilities, then rerun
models doctor local. - Loopback denied under isolation: grant the exact scheme, address, and port
from
baseUrlin the sandbox, without/v1.
For the compatible-server contract, see Providers and models. For deployment policy, see Providers and routing. For remote services, see Other OpenAI-compatible endpoints.