Coding with API Keys
With a Coding API key you can use programming tools that work with an OpenAI-compatible API. The tool sends requests to AI-School. AI-School checks the key, the budget, the validity period, and the allowed models.
Then AI-School processes the request via 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 or teacher |
| Endpoint | https://europe-west1-ai-school-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 ais.. Treat this key as a password.
Which model do you choose?
For most students, GPT-5.6 Luna is a good starting point. This fast model is suitable for programming help during the lesson and everyday code questions.
For teachers or advanced students, GPT-5.6 Terra fits well with larger projects and more complex code. Choose GPT-5.6 Sol for the most demanding tasks with a lot of analysis, planning, or reasoning.
Which tool should you choose?
AI-School recommends two tools:
| Tool | Recommended for | Why |
|---|---|---|
| Aider | Students coding in class | Explicit, clear, and less agentic |
| OpenCode | Teachers and advanced users | Agentic CLI tool with a desktop application |
Aider for students
Aider works as a pair-programming tool in the terminal. The user asks for help, sees changes, and stays relatively close to the code. That fits well with learning to code: the student gets support but remains involved in what happens.
See also the official Aider documentation.
OpenCode for advanced use
OpenCode is more agentic. The tool can perform steps autonomously, edit files, and develop tasks further. That is powerful, but also requires more understanding of code, git, and local development 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
.envthat is not committed to git - the tool's built-in configuration
For OpenCode, for example, you can use a .env in the project folder:
AI_SCHOOL_CODEREN_API_KEY=ais.your-api-key
Ensure the tool actually loads this .env. In PowerShell you can also set the variable temporarily for the current terminal:
$env:AI_SCHOOL_CODEREN_API_KEY="ais.your-api-key"
Never place API keys in a public repository, Teams 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 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
- whether the tool sends the API key as
Authorization: Bearer ... - whether the tool does not send provider-specific parameters that AI-School Coding does not support
If in doubt, ask an administrator or teacher to check the key.