Skip to main content

How LLMs work

Every agent has an LLM model (llm_id) that controls what the agent says and does. The agent and the LLM model are separate resources so you can share one brain across multiple agents — update the system prompt once and every agent using that model picks up the change immediately.
When you create an agent, OneInbox automatically creates an LLM model with sensible defaults and returns its id as llm_id.

Providers

OneInbox supports several LLM providers. Platform providers work out of the box — no credentials needed.

Set a system prompt

The system prompt defines the agent’s persona, goals, and rules. Update it at any time without rebuilding the agent:

Switch provider or model

To use a different provider or model, pass provider and model together:
For Anthropic or Groq, pass credential_id as well:
See Integrations for how to add a credential for Anthropic or Groq.

OpenRouter — curated model list

OpenRouter is platform-provided — no credential or integration needed. OneInbox exposes a curated subset of OpenRouter models, including small language models (SLMs) for low-latency use cases and select frontier models. Set provider to openrouter and pick a model ID from the supported list:
Popular supported models include: The full list of accepted model IDs is available in the model dropdown on the API reference page.
Use the exact model ID — for example mistralai/ministral-3b-2512, not mistralai/ministral-3b. A wrong ID causes the call to fail silently.

Custom LLM — bring your own model server

If you run your own model (self-hosted, fine-tuned, or on private infrastructure), point OneInbox at it using a custom provider and a WebSocket or HTTP URL. Your server must expose an OpenAI-compatible streaming chat completions interface.
Your endpoint receives the same request shape as OpenAI’s /v1/chat/completions and must return a streaming response in the same format. Tools, system prompts, and temperature are passed through unchanged.

Attach tools

Tools give the agent the ability to take actions during a call. They are attached to the LLM model — not to the agent directly:
This replaces the full tool_ids list. Include all tool IDs you want active — any not listed are detached. See Tools for how to create tools.

Attach a knowledge base

Knowledge bases let the agent answer questions from your documents or URLs. They are attached to the agent — not to the LLM model directly:
This replaces the full kb_ids list. Include all knowledge base IDs you want active — any not listed are detached. See Knowledge bases for how to create and manage them.

Get an LLM model


API reference

List models · Get model · Update model