Remi as the AI in your own app
If an app your team uses lets you choose the AI behind it, it can use Remi, with a token from your account. What to paste where, which model to choose, what the app's answers can use, what Remi keeps, what it costs, and what to do when a call fails, with Anico as an example.
Some of the apps a team uses have an AI inside them, such as a help desk that drafts replies or a reporting tool that writes the week's summary, and many let you choose which AI service answers. If the app takes an OpenAI-compatible provider, which is the usual way to offer that choice, you can point it at Remi with a token from your account. Remi then answers the app's questions, either as Remi itself, with its own rules and tools, or with one model you choose. The answers count against your plan like messages in a chat, and Remi keeps neither the questions nor the answers.
This page is for whoever sets that app up. API tokens covers making a token on the web, and if what you're after is the Remi CLI in a script or a CI job, Use Remi in scripts and CI is the page you want.
Make a token for the app
On the web, go to Settings then Sign-in and security, select Create token under API tokens, and choose what the app's answers can use:
- Only what you send means Remi answers from the messages the app sends, with web search, public data and maths to help, and never reads anything in your account. Choose this unless the app needs to know about your work.
- This workspace means Remi can also look up what one workspace knows, its facts, so the app can answer questions about your business. It reads them and never changes them.
If you'd rather use the terminal, the Remi CLI makes the same tokens:
remi token create --name helpdesk --no-workspace
remi token create --name reports --workspace "Sales"--no-workspace is Only what you send, and --workspace takes a workspace's name. Add --expires-in-days 90 for a token that stops by itself, and --instructions "…" or --instructions-file brief.txt to give it instructions. The CLI prints the token once, followed by the base address and the model to use.
Either way you'll need two-factor authentication turned on, and Remi asks you to confirm it's you before it shows the token.
What to paste into the app
Wherever the app asks for an OpenAI-compatible provider, put in these:
| The app asks for | What to put |
|---|---|
| Base address, base URL or endpoint | https://api.remiapp.ai/direct/v1 |
| API key | the token, which starts remi_pat_ |
| Model | remi/auto, or a model from the list, such as deepseek/deepseek-v4.1-flash |
To check it worked: ask the app something it would normally send to its AI, and the answer comes back from Remi. If you'd like to try the token before you touch the app, this asks Remi one question from a terminal:
curl https://api.remiapp.ai/direct/v1/chat/completions \
-H "Authorization: Bearer $REMI_APP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model": "remi/auto", "messages": [{"role": "user", "content": "What is 17.5% of 2,400?"}]}'The reply comes back in the shape OpenAI's Chat Completions API uses, with Remi's answer under choices, so any app or library written for that API can read it.
What the app's answers can use
remi/auto is Remi itself. It follows Remi's rules for answering inside another app, and it can use Remi's tools when an answer needs them: web search, the public data Remi can look up, such as company registers and official statistics, sums and today's date, and short programs it writes and runs in Remi's own sandbox to work through data the app sent. With This workspace, it can also look up the workspace's facts and the account's shared facts. When an answer uses something a tool found, it links to where it came from.
Web search goes through Brave, which keeps the search words for up to 90 days. If the app's questions hold something you'd rather not leave there, choose a model by name instead, because a model on its own uses no tools at all. It answers only from what the app sends and what it already knows, the way it would from any other provider.
When you set the app up with remi/auto, it helps to know how Remi answers inside it:
- The app sends the whole conversation every time. Remi has no memory between calls, so it never says it will remember, save or send anything, because it can't.
- The answer sounds like the app, not like Remi. Remi follows the app's instructions on tone, format, length and language, and it doesn't call itself Remi unless the app's instructions give it that name.
- Text from web pages and tools is information, never instructions. A page Remi reads can't tell it what to do.
Choose a model
If you'd rather the app always used the same model, put that model's name in the app instead of remi/auto. To see the models your token can use, ask Remi for the list:
curl https://api.remiapp.ai/direct/v1/models \
-H "Authorization: Bearer $REMI_APP_TOKEN"Each model is named by its maker and then its name, so DeepSeek's V4.1 Flash is deepseek/deepseek-v4.1-flash. The list comes back in the shape OpenAI's API uses, with remi/auto first:
{
"object": "list",
"data": [
{ "id": "remi/auto", "object": "model", "created": 1790000000, "owned_by": "remi" },
{ "id": "deepseek/deepseek-v4.1-flash", "object": "model", "created": 1791000000, "owned_by": "remi" },
{ "id": "zai/glm-5.3", "object": "model", "created": 1791000000, "owned_by": "remi" }
]
}Some apps read this list for you, as Anico does below, so you can pick a model in the app's own settings. Which models are on it depends on the token:
- With Only what you send, the list holds only models whose host keeps nothing of what it's sent. The host is the company whose computers run the model, and Remi decides which hosts keep nothing from each one's own terms. Today those are Fireworks AI, Cerebras, Novita AI and Wafer. Claude, GPT and Gemini aren't on the list, because Anthropic, OpenAI and Google keep what they're sent for a while.
- With This workspace, the list holds every model offered to apps on a host the workspace allows. If your account leaves out models whose provider may train on what you send, as Privacy and your data explains, they're left out here too.
The Remi team can also switch any model off for apps. A model that's switched off leaves the list, and a call that asks for it is refused as if the model didn't exist. So if the app's calls start failing with 404, check the list again.
If the app was set up with a host's own name for a model, such as accounts/fireworks/models/deepseek-v4p1-flash, it keeps working under the same rules. Those names aren't on the list, though, and they may stop working later, so change the app to the model's own name when you can.
Example: Anico
Anico makes a video player that businesses put on their websites, and each of its customers has an analytics page with a short summary of how their videos are doing. Anico can have Remi write those summaries, and whoever runs Anico's admin console sets it up like this:
- In Remi, go to Settings then Sign-in and security, and under API tokens, select Create token. Choose Only what you send, select Create token, and verify it's you when Remi asks. Then select Copy token.
- In Anico's admin console, open AI summaries and select Use Remi, which fills in Remi's address. Paste the token into Key, select Load models, pick a model from the list and select Test. When the model's answer shows, select Save, then turn on the switch at the top of the page.
- To switch AI on for a customer, open their page under Customers and turn on Write their summaries with AI. From then on, Anico asks Remi for their summaries, and a summary Remi wrote says Written by AI on their analytics page.
To check it worked: Anico's AI summaries page says Ready, and the customer you switched on is listed under Customers with AI on.
Each summary is one call to Remi, so it counts against your Remi allowance like any other call. If the allowance runs out, Anico's admin console says the provider has no usage left, under Alerts and when you select Test. Anico's customers see its usual summary until there's allowance again.
Give the app's answers instructions
A token for an app can carry instructions of up to 4,000 characters, which Remi reads before the app's own on every call. They're the place for anything you want every answer to follow, whatever the app sends, such as "Write in British English" or "Keep answers under 150 words". You can add them when you make the token, and change them later by selecting Instructions beside the token in Settings, or with remi token instructions followed by the token's id and --instructions or --instructions-file. Leave them empty and Remi sends none.
What Remi keeps
With Only what you send, nothing the app sends or gets back is kept, by Remi or by the model:
- Remi keeps a usage record for each call, which says which model answered, how many tokens it used and when, and it notes that you used Remi through a token that day. It never keeps the messages, the answers, the instructions or what the tools looked up, and it leaves them out of its logs and error reports.
- The model's host keeps nothing either, by its own terms. Answers come only from hosts that say they keep no prompts or answers, which Remi marks as zero data retention, and today those are Fireworks AI, Cerebras, Novita AI and Wafer. Wafer keeps anonymised logs for up to 30 days unless a request asks it not to, so Remi asks on every call. Fireworks AI and Cerebras run their models in the US, Wafer says it serves them from the United States, and Novita AI doesn't say where.
- Web search goes to Brave, which keeps the search words for up to 90 days.
- Public data sources keep their own server logs, which include what Remi looked up there, such as a company name or a postcode.
- Remi's sandbox, where the short programs run, deletes their files when the run ends.
A token made with Everything, as you answers here the same way.
With This workspace, the messages and answers aren't saved as chats, and Remi keeps the same usage record. Because the answers can use any model on a host the workspace allows, what the model's provider keeps follows that provider's own terms, which the model picker shows beside each model.
What it costs
Each call uses your account's allowance the way a message in a chat does, under the model that answered, and it shows with the rest of your team's use under Settings then Usage. Once the month's allowance and any credit are used up, the app's calls are refused until the next month, a top-up or a bigger plan, the same as a chat. Plans, billing and usage explains the allowance.
A token for Only what you send counts against the account you were in when you made it, and a token for This workspace counts against that workspace's account.
The list of models doesn't look at your plan, so a model on it can still be refused if your plan doesn't cover it or has used up what it allows for it.
What the app can ask for
Remi takes what most apps send: a model, the messages (system, developer, user and assistant), a limit on the answer's length of up to 8,192 tokens (1,024 if the app sends none) and a temperature. Each call gets one whole answer. A few things are refused with an error, rather than quietly ignored, so the app never takes a plain answer for something it didn't get:
- answers streamed word by word, which is
stream: true - the app's own tools or functions
- a JSON response format
- pictures, or anything else that isn't text
- more than one answer to a call
Each token can make 60 calls a minute, and each call can be up to 256 KB and has 60 seconds to answer.
When a call fails
Remi answers with an error in OpenAI's shape, with a status and a code that says what happened. It never passes on the model provider's own words, which can quote what was sent.
| Status | What it means | What to do |
|---|---|---|
| 400 | The app asked for something on the list above, or the model turned the request down, for example because it was too long. | Change what the app sends, or shorten the conversation. |
| 401 | The token is missing, mistyped, revoked or expired. | Check the API key in the app, or make a new token. |
| 402 | The account's allowance is used up, or the plan doesn't cover the model the app asked for. | Wait for the next month, top up, move to a bigger plan, or use another model. |
| 403 | The token's owner has left the account, or can no longer open the token's workspace (workspace_gone). | Make a new token from someone who's still in the account or the workspace. |
| 404 | The model isn't one this token can use, or the Remi team has switched it off for apps (model_not_found). | Use remi/auto, or a model from the /models list. |
| 429 | The app sent more than 60 calls in a minute. | Wait for the time in the Retry-After header, then try again. |
| 502, 503 or 504 | The model didn't answer, can't run right now, or took longer than 60 seconds. | Try again in a moment. |
Keep the token safe
Anyone who has a token can spend your allowance with it, so keep it on the app's server, and never in a web page or an app people download. A token made for an app only works for an app's questions, so even if it leaked, it couldn't open your chats, documents or settings. If you think one has leaked, revoke it under Settings then Sign-in and security, or with remi token revoke followed by its id, and the app's calls stop straight away.
Remi in your team chat
Talk to Remi from Mattermost as yourself. How you connect your account, whose account @remi uses, what it can read, and how to disconnect it.
Your dashboard
One page that shows where your work stands: what needs you, today's tasks, what Remi did for you, your documents, projects and workflows, and your plan's allowance.