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-Public. AI-Public checks the key, budget, validity period and allowed models.
AI-Public then processes the request through the environment's technical connection.
What do you need?
You need three details:
| Detail | Where do you find it? |
|---|---|
| API key | You receive it from an administrator |
| Endpoint | https://europe-west1-ai-public-pro.cloudfunctions.net/coderenOpenAiCompatibleApi/v1 |
| Model name | For example gpt-5.4-mini, gpt-5.4 or gpt-5.5 |
The API key starts with aip.. Treat this key like a password.
Which tool should you choose?
AI-Public recommends OpenCode for most users. OpenCode is an agentic coding tool for terminal, desktop and IDE. It can execute steps, edit files and work out tasks independently.
Aider is technically compatible with an OpenAI-compatible endpoint, but is not recommended as the default tool in Public environments.
See also the official OpenCode documentation.
Handle keys safely
Do not share your API key publicly and do not put it in shared code.
Prefer:
- environment variables
- a local
.envthat is not committed to Git - the tool's built-in configuration
Never put API keys in a public repository, chat, shared document or screenshot.
If the key does not work
Check:
- whether Coding is enabled for the environment
- whether your key is still active
- whether the budget has not run out
- whether the key is within the configured validity period
- whether you use an allowed model
- whether the endpoint is configured correctly
When in doubt, 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 it temporarily for the current terminal:
$env:AI_SCHOOL_CODEREN_API_KEY="ais.your-api-key"
If you see Authorization header met Bearer token is verplicht, the tool did not send the key as Authorization: Bearer .... If you see Unknown parameter, remove provider-specific settings that the AI-Public coding endpoint does not support.