Projects
What projects are for, the Default project, project budgets and budget alerts, routing settings (default model, allowed models, ignored providers, BYOK only), prompt logging and archiving a project.
MarkdownOn this page
A project is a product or environment inside your company. API keys, provider keys (BYOK), the budget, routing settings and request logs all belong to a project. Put each product or environment (say web-app and staging) in its own project and you can manage its spending, limits and logs independently of the others.
The credit balance lives on the company: every project spends from the same balance. A project budget is how you cap how much of that balance one project may use.
The Default project
When a company is created, a project called "Default" comes with it, ready for your first API key. The Default project cannot be archived. You create further projects in the dashboard; how many active projects you can have depends on your company's plan (see the pricing page), and archiving a project frees its place.
Each project has a name and a short name (slug) that is unique within the company. The slug uses lowercase letters, digits and hyphens, is derived from the name and can be changed later.
Who can do what
- Create, rename and archive projects: the company owner and company managers.
- Manage a project's API keys, provider keys, budget and routing settings: the owner, company managers and the project managers assigned to that project.
- See usage and cost: every team member.
- See request logs: the owner, company managers and the project managers assigned to the project.
A project manager only sees the projects they are assigned to.
Budget
Give a project a spending budget in USD and the period it applies to: daily, weekly, monthly or the project's whole lifetime. Periods follow UTC: a day starts at 00:00 UTC, a week on Monday and a month on its first day. Once spending in the period reaches the budget, requests with any of the project's keys return 402; when the next period starts, requests are accepted again. Before sending a request, Lykia reserves its maximum cost against the budget, so requests in flight cannot take the project past it; a request that the rest of the budget cannot cover is rejected with 402 early.
By default the budget counts spending paid with credits. To also count the list-price equivalent of requests sent with the project's own provider keys, turn on the option to include BYOK in the budget.
Budget alerts
When the project's spending in the current period passes 80% of the budget, and again when it reaches 100%, Lykia sends a notification in the dashboard and by email. It goes to the team members who can manage the project's settings (the owner, company managers and the project's assigned project managers) and to those who handle billing (the owner and accountants). Each alert is sent once per period. If you raise the budget so that spending falls back below a threshold, that alert can be sent again when spending crosses it later.
Routing settings
A project's routing settings apply to every request in that project:
- Default model: the model used when a request leaves out the
modelfield. Without a default model, such a request returns400. - Allowed models: when set, the project can only use models that match this list. Patterns accept a
*wildcard:openai/*allows every OpenAI model,anthropic/claude-*allows Anthropic's Claude models. Leave it empty to allow the whole catalog. - Ignored providers: these providers are never tried for the project's requests. Patterns accept
*here too. - Sort by price: when on, every candidate, including the project's own provider keys at their list-price equivalent, is ordered cheapest first. When off, the project's own keys come first. Throughput and latency are not measured, so price is the only sort.
- BYOK only: when on, requests go out only with the project's own provider keys; Lykia's provider keys are never used.
Project settings always apply. The provider object on a request (Provider routing) adds preferences within these boundaries, but it cannot open up a model or provider that the project has closed. A request for a model outside the allowed list returns 403:
{
"error": {
"message": "Model openai/gpt-4o is not allowed for this project",
"type": "permission_error",
"code": "model_not_allowed",
"status": 403,
"metadata": {
"reason": "forbidden"
}
}
}If the ignored providers leave no candidate for a model, the request returns 503. If the project is set to BYOK only and none of its provider keys can serve the model, it returns 403.
Prompt logging
By default Lykia does not store the text of prompts or responses; it records details about each request, such as the model, provider, token counts, cost and timing. If you want the text kept as well, for debugging, turn on prompt logging in the project's settings. The setting affects that project's requests only. More in Privacy and logging.
Archiving a project
You can archive a project you no longer use. Archiving cannot be undone. The gateway rejects the API keys of an archived project with 403 (code project_archived), and no new API keys or provider keys can be added to it; its logs and usage history are kept. The Default project cannot be archived.