Setting Up Your AI Provider¶
To use the AI assistant you connect it to an AI provider — the service that actually runs the AI model. CosMO does not include a model of its own, so each user supplies their own provider and key. This page walks you through it.
First, check AI is available to you
You can only reach the AI settings if your administrator has switched AI on and given your account the AI User role. If you cannot find the AI settings or the chat panel, ask your administrator.
Step 1 — Get an API key from a provider¶
Choose one of the supported providers and obtain an API key from them. You pay the provider directly for the AI usage; CosMO does not charge for it.
| Provider | What it is | Where to get a key |
|---|---|---|
| Anthropic (Claude) | Anthropic's Claude models | Your Anthropic account console |
| OpenAI | OpenAI's GPT / o-series models | Your OpenAI account dashboard |
| OpenAI-compatible | Azure OpenAI, or a local/private model run with Ollama, LM Studio, vLLM, and similar | From that service — a local model may need no key at all |
Keep the key handy — you will paste it into CosMO in the next step.
Not sure which model to pick?
Any current general-purpose model works well. As a starting point: Claude 3.5 Sonnet (Anthropic) or GPT-4o (OpenAI) give strong results; their smaller siblings (Claude 3.5 Haiku, GPT-4o mini) are cheaper and faster and are fine for everyday questions.
Step 2 — Open your AI settings¶
Open your profile (top menu bar, left to your username) and choose AI.
You will see fields for the provider, key, and model.
Step 3 — Enter your provider details¶
Fill in the form:
- Provider — choose Anthropic, OpenAI, or OpenAI-compatible.
- Model — the exact model identifier from your provider, for example:
- Anthropic:
claude-3-5-sonnet-20241022,claude-3-5-haiku-20241022 - OpenAI:
gpt-4o,gpt-4o-mini,o1 - Local (Ollama):
llama3.1:8b,qwen2.5:14b
- Anthropic:
- API key — paste the key from Step 1.
- Address (base URL, custom providers only) — where to reach the provider:
- Anthropic and OpenAI: leave blank to use the official service.
- OpenAI-compatible: required — enter the endpoint, for example
http://custom-ai-provider:11434/v1for a local Ollama server, or your Azure OpenAI endpoint.
Approved providers only
Your administrator may have restricted which provider addresses are allowed. If you enter an address that is not permitted, saving is blocked with a message — use an approved provider or ask your administrator.
Step 4 — Test the connection¶
Click Test connection. CosMO sends a small request to your provider with the details you entered and reports whether it succeeded.
- Success — your provider, key, model, and address all work together.
- Failure — the message explains what went wrong. Common causes are a mistyped or expired key, a model name your provider does not offer, or a wrong address for an OpenAI-compatible endpoint.
Fix any problem and test again until it succeeds.
Step 5 — Save¶
Click Save. You are now ready to use the assistant — look for the chat panel in the corner of any page.
To stop using AI or switch providers later, return to this page. You can change any field and save again, or use Clear / Delete to remove your AI configuration entirely.
Optional fine-tuning¶
These settings have sensible defaults — adjust them only if you want to:
- Maximum response length — caps how long a single answer can be. The default (around 4,000 tokens) suits most questions. Raise it if answers are getting cut off; lower it to keep costs down.
- Temperature — how creative versus precise the assistant is, from
0.0(focused and consistent) to higher values (more varied). The default (0.3) is deliberately low, which is best for accurate, data-driven answers. - Custom system prompt — advanced: replace the built-in instructions that shape the assistant's behaviour. Leave blank to use the standard prompt.
Privacy and cost — what to keep in mind¶
- Your questions and the data used to answer them are sent to your chosen provider. If that matters for your data, use an OpenAI-compatible local model so nothing leaves your network.
- You pay your provider for usage. Each question consumes tokens, which the provider bills to your account. Larger models and longer answers cost more. Your administrator can see overall usage on the AI Usage screen.