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, the budget, the validity period, and the allowed models.
Then AI-Public processes the request through the environment's technical integration.
What do you need?
You need three pieces of information:
| Information | Where to find it? |
|---|---|
| API key | You get this from an administrator |
| Endpoint | https://europe-west1-ai-public-pro.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 aip.. Treat this key as a password.
Which tool should you choose?
AI-Public recommends OpenCode for most users. OpenCode is an agentic coding tool for the terminal, desktop, and IDE. The tool can perform steps autonomously, edit files, and further refine tasks.
Aider is technically compatible with an OpenAI-compatible endpoint, but is not recommended as the default tool within Public environments.
See also the official OpenCode documentation.
Safe handling of keys
Do not share your API key publicly and do not put it in code you share.
Preferably use:
- environment variables
- a local
.envfile that is not pushed 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:
- if Coding is enabled for the environment
- if your key is still active
- if the budget is not exhausted
- if the key falls within the configured validity period
- if you are using an allowed model
- if the endpoint is configured correctly
If in doubt, ask an administrator to verify 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 temporarily set the variable 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-Public does not support.