Coding with API Keys
With a Coding API key you can use coding tools that work with an OpenAI-compatible API. The tool sends requests to AI-Corporate. AI-Corporate checks the key, the budget, the validity period, and the allowed models.
Then AI-Corporate processes the request through the environment's technical integration.
What do you need?
You need three pieces of information:
| Given | Where to find this? |
|---|---|
| API key | You get this from an administrator |
| Endpoint | https://europe-west1-ai-corporate.cloudfunctions.net/coderenOpenAiCompatibleApi/v1 |
| Model name | For example gpt-5.6-luna, gpt-5.6-terra or gpt-5.6-sol |
The API key starts with aic.. Treat this key like a password.
Which tool do you choose?
AI-Corporate recommends OpenCode for most users. OpenCode is an agentic coding tool for terminal, desktop, and IDE. The tool can independently carry out steps, edit files, and further develop tasks.
Aider is technically compatible with an OpenAI-compatible endpoint, but is not recommended as the standard tool within Corporate environments.
Also see the official OpenCode documentation.
Safe handling of keys
Do not share your API key publicly and do not include it in code you share.
Prefer to use:
- environment variables
- a local
.envthat is not sent to git - the tool's built-in configuration
Never place API keys in a public repository, chat, shared document, or screenshot.
If the key doesn’t work
Then check:
- whether Coding is enabled for the environment
- whether your key is still active
- whether the budget is not exhausted
- whether the key falls within the configured validity period
- whether you are using an allowed model
- whether the endpoint is configured correctly
If unsure, ask an administrator to check the key.
Environment variables and OpenCode
For OpenCode you can store the Coding API key in a local .env file in the project folder:
AI_SCHOOL_CODEREN_API_KEY=ais.your-api-key
Make sure OpenCode actually loads this environment variable. In PowerShell you can also set the variable temporarily for the current terminal:
$env:AI_SCHOOL_CODEREN_API_KEY="ais.your-api-key"
If you see Authorization header with Bearer token is required, the tool is not sending the key as Authorization: Bearer .... If you see Unknown parameter, remove provider-specific settings that the Coding endpoint of AI-Corporate does not support.