Using Alara Code
AI providers
Alara Agents or the Native engine, adding a provider key, models and the fallback, the budget, and where your data goes.
6 min read12 sections
A project runs its steps on one of two engines, chosen when the project is created. This page explains the choice, and how an administrator sets up the Native engine in Settings › AI providers.
Alara Agents or Native
| Alara Agents | Native | |
|---|---|---|
| Who runs the steps | A reasoning agent in Alara, bound to the project | Alara Code itself, on your organization's own AI provider key |
| Set up in | Set up the project agent | Settings › AI providers (this page) |
| Cost shown | Not available yet | Tokens and cost in Usage |
| Document label | "Written by Alara Agents" | "Written by Native" and the model |
The engine is fixed when the project is created. Native is offered only when your organization has a working provider key and a default model; until then it is shown locked, with the reason.
Add a provider key
You need the Settings › API key permission to change keys.
- Open Settings › AI providers and choose Add provider.
- Pick the platform: OpenAI, Anthropic or Huawei Cloud MaaS (GLM and DeepSeek models). Only platforms that do not have a key yet are offered, because each platform holds one key.
- Paste the API key and tick the box that says your prompts and documents are sent to that provider.
- Choose Save & verify. The key is checked with the provider, then stored encrypted. It is never shown again, only a masked ending.
To change a key, paste a new one and choose Replace & verify. Disable asks you to confirm, then stops using the key without deleting anything at the provider. Native projects on that platform wait until a key is saved again, and they keep their engine.
If the check fails you get a plain reason, for example that the provider rejected the key or that the key works but offers no models Alara Code can use. The message never contains the key.
Models and the fallback
After a key is verified, the models it offers are listed.
- Allowed models: tick the ones projects may use, one row of checkboxes per connected platform. Only ticked models can be chosen by a project. At least one must stay ticked.
- Default model: the starting choice for new projects. A project that does not pick its own model runs every Native step on it.
- Fallback model (optional): the starting fallback for new projects, used only when the model is down or failing at the provider. It is never a way around the budget, and it has to differ from the default.
The default and fallback are chosen from the allowed models only. Press Save models to keep them.
Each project's own model
When someone creates a Native project, Model and Fallback model are already set to your default and fallback. They can pick any other allowed model, or set the fallback to None. The same two choices are in Project settings › Engine, and a change applies from the next step; a step that is already running keeps the model it started with. Clearing both with Use the organization's models makes the project follow your default and fallback again.
If you stop allowing a model that a project uses (or its provider key stops working), the project's next step runs on your default model instead. The step shows the note "This project's model is no longer enabled, so the organization's default model was used. Pick another in project settings.", with a link to the project's settings, where the project can pick another model.
Thinking: Fast or Careful
On a Native project you also choose how much the model thinks before each step. The choice is on the new project form, under the engine, and later in Project settings › Engine.
| Fast (the default) | Careful | |
|---|---|---|
| What it does | Turns thinking off for the steps measured not to need it | Lets the model think before every step |
| Speed | Steps finish several times sooner | Slower |
| Documents | Measured side by side, they read as good | Worth the wait when the project is hard or the stakes are high |
- A change applies from the next step. A step that is already running keeps the mode it started with.
- Changing it needs the Projects › Binding permission, the same as the engine and the model. Without it the cards are readable but locked, with the reason shown.
- Switching the mode does not change documents that are already written, only the steps you run after it.
- The run history shows the mode on each run, for example "on Native engine · Careful".
Switch model without leaving the chat
The model button in the project chat's message box changes the project's model from the conversation, see Choose the model.
Budget and limits
Under Budget and limits an administrator sets two amounts, in whole US dollars. Leave a box empty for no cap (No cap), then press Save limits.
- Monthly budget: the most the whole organization may spend in a calendar month (UTC), up to $1,000,000.
- Per-run cap: the most a single step may spend, up to $100,000, and never more than the monthly budget. A step that reaches it stops, and keeps what it had already written.
Spend this month is shown beside the budget for people who can see organization usage. Everyone who can chat also sees a small meter beside the message box when a monthly budget is set, with Spent this month, Budget and Left.
At 80% and at 100%
| Spent | What happens |
|---|---|
| 80% of the monthly budget | A warning banner, N% of the monthly AI budget is used, shows with an Open AI providers button. Everything keeps working. |
| 100% | The monthly AI budget is reached. New steps are refused until the budget is raised or the month changes; steps already running finish. A refused step says The AI budget is used up. Raising the budget works from the next call. |
Only people who can see organization usage or read AI providers see the banner.
When the provider is busy
A short hiccup is retried quietly. If it keeps failing, the fallback model runs the step, or the step stops with a plain message and a Retry step button; nothing is lost. When many steps start at once they wait in line and show "Waiting in line, position N".
One step, from start to finish
Putting the rules above in order, this is what a Native step goes through before you see its draft:
- You start a step to Is the monthly budget used up?
- Is the monthly budget used up? to Refused: The AI budget is used up, Yes
- Is the monthly budget used up? to Is the project's model still allowed, with a working key?, No
- Is the project's model still allowed, with a working key? to Runs on the organization's default model, with a note, No
- Is the project's model still allowed, with a working key? to Runs on the project's model, Yes
- Runs on the organization's default model, with a note to Is the provider failing?
- Runs on the project's model to Is the provider failing?
- Is the provider failing? to Draft saved, awaiting your review, No
- Is the provider failing? to Is a fallback model set?, Yes
- Is a fallback model set? to The fallback model runs the step, Yes
- Is a fallback model set? to The step stops, with Retry step, No
- The fallback model runs the step to Draft saved, awaiting your review
Recent changes
Recent changes lists the latest three changes to keys, models and limits, newest first. View all activity opens a page with the full list: when, who changed it, the platform, which setting and what was done.