# Connect a model Open **AI Setup → Connect AI**. Guided setup creates model configurations for a selected provider. For the full model form, open the dropdown beside **Connect AI → Manual creation**, or choose **I’m an expert** in the wizard. The form lets you specify the provider, technical model name, endpoint, and supported settings; the selected provider profile determines the adapter. - **Cloud API:** use a credential issued by that provider with access to the selected model. An OpenAI-compatible endpoint is not necessarily identical to OpenAI; choose the appropriate adapter and base URL. - **Subscription CLI:** install and authenticate the supported CLI on the machine running FLUJO. Credentials in a browser on another machine do not automatically authenticate the server. - **Ollama:** start Ollama, download a model, and use its reachable address. With Docker, configure a container-reachable endpoint rather than the host's `localhost`. Saving creates a configuration. Use **Test model** (the flask icon on the model card) to check actual access before using it in an agent. Tests can consume model quota. For failures, inspect authentication, model availability, endpoint, rate limits, and the runtime's PATH. Use **Edit model** (the pencil icon) to replace credentials; masked credential placeholders should not be copied to other connections. OpenRouter offers three provider profiles: **OpenRouter** uses Responses through the OpenAI SDK, **OpenRouter Messages** uses the Anthropic Messages SDK for compatible Claude models, and **OpenRouter Agent SDK** uses `@openrouter/agent` and `callModel`. Responses and Agent SDK use `https://openrouter.ai/api/v1`; Messages uses `https://openrouter.ai/api` because the Anthropic SDK appends `/v1/messages`. All profiles use your OpenRouter API key. Select the technical model ID from OpenRouter's catalogue and set **Reasoning effort** where supported by that model. The Agent SDK integration supports streaming text and tool arguments, cancellation, usage reporting, and request inspection. It uses the SDK's manual-tool mode so FLUJO executes MCP tools and handoffs with its existing approval and execution controls. Each SDK call makes one provider turn; FLUJO supplies the updated history for the next turn. Cloud requests send content and credentials to the selected provider. Store secrets in the credential fields, not agent prompts. Set a private encryption password in Settings if you need protection against access to stored data. Continue with [your first conversation](../../getting-started/README.md) or [model settings](settings.md). ## LiteLLM For a new connection, **LiteLLM** uses Responses. If your proxy only supports Chat Completions, choose **LiteLLM Chat Completions**. Existing saved connections keep their selected format; older connections without a saved format keep Chat Completions. Use **Test model** to check your proxy before running an agent. ## MartLLM [MartLLM](https://martllm.com) is a paid service that gives you many models with one key. In the manual form, open **Provider**, choose **MartLLM** under **Routers & gateways**, and paste your MartLLM API key. The base URL is filled in for you: `https://api.martllm.com/v1`. FLUJO talks to it in the OpenAI Chat Completions format. The technical name has the form `vendor/model`, for example `deepseek/deepseek-v4.1-flash`. FLUJO loads MartLLM's model list, so you can pick a name from the suggestions. Prices are listed at [martllm.com/models](https://martllm.com/models). MartLLM was called UberLLM until November 2026. Connections that still use an `uberllm.dev` address keep working, and FLUJO recognises them as MartLLM. Use **Test model** to check your key before running an agent. ## Codex Codex models are discovered from the running server's workspace login instead of a fixed model-name list. Ordinary runtimes check for stable CLI updates daily, qualify candidates separately and retain active calls on their original version. See [Codex model and runtime updates](codex-updates.md). ## Antigravity CLI Argon availability can differ between the CLI's Google-account and Gemini-key modes. In CLI 1.4.2, the Gemini-key catalog omits Argon and rejects its model names; Google tracks this in [CLI issue #1228](https://github.com/google-antigravity/antigravity-cli/issues/1228). FLUJO displays the catalog the installed CLI actually accepts. For Argon with a Gemini API key, choose **Gemini (Native)** and select `gemini-4-argon` instead. Choose **Antigravity CLI** in guided setup or manual creation. FLUJO detects or installs Google’s official CLI automatically. Enter a Gemini API key, or confirm an existing local Google account login. Model availability and quota depend on your account or API key. With a Gemini API key, paste the key and connect: FLUJO finds or installs the official Antigravity CLI automatically. For account login, launch Google’s `agy` as the user running FLUJO and complete browser sign-in. Immediately after installing on Windows, use `& "$env:LOCALAPPDATA\agy\bin\agy.exe"`; FLUJO detects this location without a PATH refresh. Leave the API key empty for account mode. Sign-in must be available to the operating-system user running the FLUJO server or worker. A login on another computer or under another user does not authenticate a remote server or container. A background model request cannot complete interactive sign-in. FLUJO links the official platform instructions; there is no Antigravity WinGet one-click installer. For unattended hosts, a saved Gemini API key avoids the account login flow. The **Antigravity CLI Default** selection uses the CLI's default model. The picker loads the official CLI catalog for the selected authentication mode; an unknown headless model fails explicitly. Account and API-key model catalogs can differ. See [Google's headless CLI documentation](https://antigravity.google/docs/cli/headless/) for model selection. FLUJO gives each invocation a private CLI home and working directory and exposes the tools configured for that FLUJO run through its approval checks. Account runs may copy only the official credential cache into that private home. Personal settings, plugins, hooks, project instructions, and CLI sessions are not imported. FLUJO conversation history supplies subsequent turns; the experimental [conversation continuation](antigravity-runtime.md#continuing-the-cli-conversation-experimental) instead reopens FLUJO's own private CLI conversation and sends only new messages. Antigravity CLI connections currently accept text; choose the Gemini native API connection for supported media inputs. Temperature and output-token controls are not forwarded to the CLI. Workspace snapshots preserve the saved model configuration while excluding the private Antigravity runtime, copied credentials, and CLI sessions. Authenticate separately on the destination host before using a restored account connection. Keep credentials and authorization codes out of Git and shared evidence.