The agent API is in early access, like the rest of API v2.
To call the agent from your own code, see Agent. To give an assistant all of Argil’s tools (generations, assets, the agent), connect MCP instead.
How it works in a chat
- One chat is one conversation. Every reply ends with
Open in Argil: <link>; when the app sends the chat back with your next message, Argil finds the conversation from that link. The same conversation is in the Argil app. Editing or regenerating an earlier message does not branch it: the new text goes to the same conversation. - The agent asks in words. Its choices come numbered, its storyboard and budget with a line saying how to answer. Reply as you would to a person: “2”, “neon noir”, “ok”, “ok, 500”, “change shot 3”. “ok” approves the storyboard or raises the budget; anything more is a request to the agent.
- It takes minutes. While the agent works, the app shows what it is doing as thinking. A reply lasts at most 8 minutes: if the agent is still working then, the reply says so, and your next message (any text) gets the result.
- One message at a time. A message sent while the agent works is not sent: the reply follows the running turn and says to send it again.
- Files. Images attached in apps that send them reach the agent. The results come as links.
- Side tasks. Apps also ask their chat model for a title, tags or a summary, without streaming. Argil refuses these (
400), without starting the agent: point them at another model where the app allows it, as below.
Hermes
Add Argil as a named provider inconfig.yaml, on Hermes’ default Chat Completions transport:
/model custom:argil:argil-agent, or pick it in hermes model. Keep the chat_completions transport: on codex_responses, Hermes ends a short request after 90 seconds. Set the auxiliary models (title generation, compression) to another provider, so these side jobs do not go to Argil.
Open WebUI
In Admin Settings → Connections, add an OpenAI API connection with the base URL and your key, then Verify Connection:argil-agent comes from GET /v2/models.
In Admin Settings → Interface → Tasks, set the External Task Model to another model, or turn off title, tags and follow-up generation.
VS Code
GitHub Copilot Chat, bring your own key: Chat: Manage Language Models → Add Models → Custom Endpoint, then inchatLanguageModels.json:
Zed
Insettings.json, then add the API key in Agent Settings → LLM Providers:
Codex
In~/.codex/config.toml, with the key in ARGIL_API_KEY:
Continue
Inconfig.yaml, with the trailing slash on apiBase:
LibreChat
Inlibrechat.yaml:
Cursor
In Cursor Settings → Models, set the OpenAI API key to your Argil key, turn on Override OpenAI Base URL with the base URL, and add the modelargil-agent. Use it in Ask mode: Cursor’s Agent mode sends its own tools and request shapes. The override applies to every OpenAI model in Cursor, so turn it off to use theirs. Cursor’s support for custom models is limited and may change.