> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argil.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Argil in your AI apps

> Add Argil's agent as a model in Hermes, Open WebUI, VS Code, Zed, Codex and other apps that accept an OpenAI-compatible model.

> [!NOTE]
>
> The agent API is in early access, like the rest of API v2.

Any app that lets you add an OpenAI-compatible model can chat with Argil's agent: you brief it in the app, it makes the video in your Argil workspace, with your credits. Every app needs the same three values:

| | |
| - | - |
| Base URL | `https://api.argil.ai/v2` |
| API key | an Argil API key, sent as `Authorization: Bearer` |
| Model | `argil-agent` |

To call the agent from your own code, see [Agent](https://docs.argil.ai/v2/agent/responses.md). To give an assistant all of Argil's tools (generations, assets, the agent), connect [MCP](https://docs.argil.ai/v2/mcp/overview.md) 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 in `config.yaml`, on Hermes' default Chat Completions transport:

```yaml theme={null}
providers:
  argil:
    api: https://api.argil.ai/v2
    key_env: ARGIL_API_KEY
    transport: chat_completions
    default_model: argil-agent
    models:
      argil-agent:
        supports_vision: true
```

Then `/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 in `chatLanguageModels.json`:

```json theme={null}
[
  {
    "name": "Argil",
    "vendor": "customendpoint",
    "apiKey": "${input:argilApiKey}",
    "apiType": "responses",
    "models": [
      {
        "id": "argil-agent",
        "name": "Argil agent",
        "url": "https://api.argil.ai/v2/responses",
        "toolCalling": false,
        "vision": true
      }
    ]
  }
]
```

Use it in Ask mode: Argil's agent does not call VS Code's tools.

## Zed

In `settings.json`, then add the API key in **Agent Settings → LLM Providers**:

```json theme={null}
{
  "language_models": {
    "openai_compatible": {
      "Argil": {
        "api_url": "https://api.argil.ai/v2",
        "available_models": [
          {
            "name": "argil-agent",
            "display_name": "Argil agent",
            "max_tokens": 128000,
            "capabilities": { "tools": false, "images": true }
          }
        ]
      }
    }
  }
}
```

## Codex

In `~/.codex/config.toml`, with the key in `ARGIL_API_KEY`:

```toml theme={null}
model_provider = "argil"
model = "argil-agent"

[model_providers.argil]
name = "Argil"
base_url = "https://api.argil.ai/v2"
env_key = "ARGIL_API_KEY"
wire_api = "responses"
```

## Continue

In `config.yaml`, with the trailing slash on `apiBase`:

```yaml theme={null}
models:
  - name: Argil agent
    provider: openai
    model: argil-agent
    apiBase: https://api.argil.ai/v2/
    apiKey: <your Argil API key>
    roles:
      - chat
```

## LibreChat

In `librechat.yaml`:

```yaml theme={null}
endpoints:
  custom:
    - name: "Argil"
      apiKey: "${ARGIL_API_KEY}"
      baseURL: "https://api.argil.ai/v2"
      models:
        default: ["argil-agent"]
        fetch: true
      titleConvo: false
```

## 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 model `argil-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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.