Turn it on
-
Add a model to your Engine’s
config.yaml(see below). -
Start the Engine with
--with-agent:With Docker, addserve --with-agentafter the image name.
/data/agent, so
keep /data on a volume.
If the assistant can’t start or becomes unavailable, the dashboard shows a
retry message and everything else keeps working.
Choose a model
Add one of these toconfig.yaml, alongside your existing settings.
Ollama
A gateway with an API key
THREADIFY_AI_GATEWAY_KEY in the Engine’s environment, from your service
manager or secret store. If your gateway doesn’t need a key, leave out
api_key_env.
A gateway with certificates
Files must be PEM, and the private key must not be encrypted. Relative paths
are relative to
config.yaml. You can combine tls with api_key_env.
Rules
base_urlincludes the API prefix, usually/v1, but not/chat/completions.modelis the gateway’s exact model ID.- If
api_key_envis set, that variable must not be empty. - Your Threadify license is never sent to your gateway.
- The Engine doesn’t follow redirects or use HTTP proxy environment variables when calling the gateway.
- Restart the Engine after changing these settings or rotating keys or certificates.
In a container, use paths inside the container for the config and certificates,
and remember that
127.0.0.1 is the container itself. To reach Ollama on the
host, use a hostname the container can resolve.Conversations
Conversations live in the assistant’s memory and are lost when the Engine restarts. Anything the assistant saved, such as a contract, stays in Threadify. If you run several Engines behind a load balancer, use sticky sessions so each conversation keeps talking to the same Engine. What you type, and the data the assistant reads to answer you, is sent to the model you configured.Run it on a separate server
To run the assistant as its own service, start the Engine without--with-agent
and point it at the assistant:
THREADIFY_AGENT_URL. Use the base address only, with no path.
Configure the model on the assistant’s server; the Engine doesn’t pass model keys
or certificates to it.
You can use --with-agent or ai.agent.url, not both. ai.enabled: false
turns the assistant off completely.
Install without internet access
Download the runtime in advance:--agent-runtime-archive /path/to/runtime.tar.gz to the install command. You can
set the cache directory with THREADIFY_AGENT_CACHE_DIR instead of the flag.
Check it works
Open a thread in the dashboard and ask:Summarize this thread’s status. Don’t change anything.