Compositev12
App guide

Use Composite as your Agnai proxy

Agnai (Agnaistic) supports third-party OpenAI-compatible AI service presets. Point one at Composite's OpenAI-compatible base URL to run community presets, lorebooks and plugins on your own provider key, or on Synth, LuciditySH's creative model, free on Composite, with no key from another provider (unpaid accounts link Discord on their account page first).

What "Agnai proxy" means

Agnai does not run its own models by default. Under its AI service presets you point it at an OpenAI-compatible API, and every message you send is forwarded there and the reply shown in your chat. That forwarding service is what people mean by a "proxy" for Agnai. It sits between the persona and scenario tools you use and the model actually generating replies. Composite is one such proxy: it authenticates your API key, applies the presets, lorebooks and plugins attached to it, sends the request to your own provider or to the model you picked, and returns a standard OpenAI-formatted response. One Composite key reaches every model on the platform, so switching characters or presets does not mean a new key or a new setup.

Paste values

Copy these directly into a new AI service preset in Agnai. Choose an OpenAI or third-party/custom OpenAI-compatible service type.

Agnai

Use these fields when creating an OpenAI-compatible preset in Agnai.

ServiceOpenAI (Third Party)
Base URLhttps://composite.lucidity.sh/v1
API KeyYOUR_API_KEY
Model (free): GLM 5.3 Flashz-ai/glm-5.3-flash:free
Model (free): DeepSeek V4 Flash 0731deepseek/deepseek-v4-flash-0731:free
Model (free): MiMo-V2.6-Flashxiaomi/mimo-v2.6-flash:free
Model (free): Synth 2.5 Flashlucidityai/synth-2.5-flash

Pick one model ID. On credits or a plan, paid IDs such as minimax/minimax-m3 work too. Synth has no daily cap; the other free models share a separate 80, and larger ones count as several requests per call. The free models list has the current set. Unpaid accounts link Discord on the account page first.

Setup steps

Agnai
Add Composite as an OpenAI-compatible AI service preset.
  1. Open Agnai's settings and add a new AI service preset.
  2. Select OpenAI (Third Party / Custom) as the service.
  3. Paste https://composite.lucidity.sh/v1 as the base URL.
  4. Paste your Composite API key into the key field.
  5. Select or type a model ID from the Models page, save the preset, and start a chat.
  6. Send a short message such as "Hello". A normal reply means the connection works; an error code points to the key (401), the model ID (404) or a daily or per-minute limit (429). The proxy errors guide has the fix for each.
Settings Reference
Service:      OpenAI (Third Party)
Base URL:     https://composite.lucidity.sh/v1
API Key:      YOUR_API_KEY
Model:        minimax/minimax-m3
Which key and model Accounts are free, and you make a key on the Keys page. Bind it to your own provider on the API Keys page (the BYOK quickstart takes two minutes) and use one of that provider's model ids, listed under Your provider on the Models page. With no provider, use lucidityai/synth-2.5-flash, LuciditySH's creative model, free on Composite.

Troubleshooting

The most common problems when using Composite as an Agnai proxy, and how to fix them.

Agnai proxy not working
The connection fails or no models appear.

Confirm the preset's service is set to an OpenAI-compatible option, the base URL is exactly https://composite.lucidity.sh/v1 with nothing appended after it, and the API key was pasted with no leading or trailing spaces. Send a short test message before trusting a longer chat to the connection.

429 errors and rate limits
What a 429 means on Synth and on your own provider.

A 429 response on Synth can mean the account rate limit was reached. Free and BYOK requests share 5 requests per minute per account. Wait for the retry time in the message. Synth has no daily cap. Your provider can also apply its own limits.

Invalid API key error
Key format, the Bearer header, and key scoping.

Composite API keys start with cmp- and are sent as a bearer token, so the key field should hold only the key itself. Agnai adds the Bearer header for you. An invalid-key error usually means the key was revoked, mistyped, or deleted; generate a fresh one on the API Keys page. Each key can also be scoped to specific models, so a key that works for one model can still fail on another it is not allowed to use.

Which model should I use?
A short starting point for roleplay on Agnai.
Use caseSuggestion
General roleplay, default choiceminimax/minimax-m3
No provider key yetlucidityai/synth-2.5-flash (Synth), free on every account
Long-running character or campaignA higher context-length model from the Models page, paired with a memory-layer setting on the key
Highest reply quality, budget flexibleCompare current premium models on the Models page

The catalog changes as models are added, so treat the Models page as the source of truth rather than a fixed list.

Context window on long chats
What happens when a chat outgrows the model's context.

Every model has a fixed context window. Once a conversation exceeds it, Composite trims older messages to keep the request within limits, so long-running characters can start losing early details unless the key is set to one of Composite's memory-layer modes, which summarize and retrieve older history instead of dropping it outright. If replies start ignoring established facts in a long Agnai chat, check the key's memory-layer setting before assuming the model itself is at fault.

Still stuck after working through the above? The full docs cover account setup, API keys, and model access in more detail, and the feedback page reaches Composite directly if something looks broken rather than misconfigured.