Aelius Code

Use Aelius as the model in your coding agent: Cline, Continue, Roo Code, opencode or Qwen Code. Free with any account.

Looking for the JSON API for your own software? That's the general API (ael_sk_ keys, reviewed by a person). You don't need it here.

Overview

BASEhttps://code.aeliusai.com/v1
Model
qwen3.8-27b
Context window
262,144 tokens
Protocol
OpenAI Chat Completions
Auth
Authorization: Bearer aelius_code_…
Images
Yes
Price
Free; Aelius Pro raises every limit

Getting a key

Free, instant, no review. You need to be signed in (sign up); guests can't hold a key.

  1. Click your name at the bottom left

    On a phone, open the menu first.

    The bottom of the Aelius sidebar, with the account row circled
  2. Choose Aelius Code

    It's in the App group.

    The App group of the Aelius settings list, with Aelius Code circled
  3. Name it and click Create a key

    The Aelius Code settings panel, with the endpoint, model and context window circled, and the Create a key button circled
  4. Click Copy

    It's shown once and can't be read back. Lost it? Revoke it and make another. Treat it like a password.

    A newly created key shown once, with the Copy button circled

What your editor asks for

Base URLhttps://code.aeliusai.com/v1
Modelqwen3.8-27b
Context window262144
API keyaelius_code_… (yours)

Qwen Code, step by step

An agent in a VS Code side panel. You need desktop VS Code and your key on the clipboard before step 9.

Install the extension

  1. Open Extensions

    Ctrl Shift X (Cmd on a Mac), or the circled icon.

    The VS Code activity bar with the Extensions icon circled
  2. Search qwen code

    Pick Qwen Code Companion by qwenlm. Not the one called just "Qwen".

    Marketplace results for qwen code, with the search box and the Qwen Code Companion result circled
  3. Click Install

    The Qwen Code Companion extension page with the Install button circled
  4. Open the panel

    Click the Qwen icon at the top right. No icon? Ctrl Shift P → Developer: Reload Window.

    The installed extension, with the Installed label and the Qwen toolbar icon circled

Point it at Aelius

Pressing Esc on any prompt cancels; start again at step 5.

  1. Type /auth and press Enter

    The Qwen Code panel with /auth typed into the message box, circled
  2. Choose Custom Provider

    Last in the list.

    The Select Provider list with Custom Provider at the bottom circled
  3. Choose OpenAI Compatible

    The protocol prompt with OpenAI Compatible circled
  4. Paste the base URL

    https://code.aeliusai.com/v1

    Ends at /v1, no trailing slash.

    The Base URL prompt containing the Aelius Code endpoint, circled
  5. Paste your key

    Watch for a trailing space.

    The API key prompt with the masked key field circled
  6. Paste the model name

    qwen3.8-27b
    The model IDs prompt containing the Aelius model name, circled
  7. Say hello

    It thinks first, then answers.

    The Qwen Code panel answering a message, with the reply circled

Then fix the context window

Qwen Code assumes 1,000k; the real window is 262,144. Without this, long sessions fail. Add this to ~/.qwen/settings.json (%USERPROFILE%\.qwen\settings.json on Windows), then restart VS Code:

{
  "modelProviders": {
    "openai": [
      {
        "id": "qwen3.8-27b",
        "baseUrl": "https://code.aeliusai.com/v1",
        "generationConfig": {
          "contextWindowSize": 262144
        }
      }
    ]
  }
}

It must sit on the provider entry, not under a top-level model key. Also turn off any request timeout: agent turns can take minutes.

If something's wrong

ProblemFix
No Qwen icon Ctrl Shift P → Developer: Reload Window.
Nowhere to enter a URL Wrong extension or provider. See steps 2 and 6.
401 invalid_api_key Space copied with the key, or key revoked. Run /auth again.
404 or empty model list Trailing slash on the URL, or model name misspelled.
Long turn ends in a network error Client timeout. Turn it off.
Prompt too long Fix the context window, above.
429 quota_exceeded Allowance used up. See Limits.
503 verification_unavailable Wait a few seconds. Your key is fine.

Qwen Code in a terminal

export OPENAI_BASE_URL="https://code.aeliusai.com/v1"
export OPENAI_API_KEY="aelius_code_YOUR_KEY_HERE"
export OPENAI_MODEL="qwen3.8-27b"

qwen

PowerShell: $env:OPENAI_BASE_URL="…" and so on. Apply the context window fix too.

Cline

  1. Install Cline from the VS Code marketplace.
  2. In its settings, set API Provider to OpenAI Compatible.
  3. Fill in:
Base URL
https://code.aeliusai.com/v1
API Key
aelius_code_…
Model ID
qwen3.8-27b
Context window
262144

Continue

Add to ~/.continue/config.yaml:

models:
  - name: Aelius
    provider: openai
    model: qwen3.8-27b
    apiBase: https://code.aeliusai.com/v1
    apiKey: aelius_code_YOUR_KEY_HERE
    defaultCompletionOptions:
      contextLength: 262144
    roles:
      - chat
      - edit
      - apply

Don't add autocomplete: it fires on every pause and burns your allowance.

Roo Code

Same as Cline: provider OpenAI Compatible, the same values, "Use Azure" off.

opencode

Works the same in the desktop app, the terminal and opencode web.

  1. Install opencode

    Desktop app: opencode.ai/download. Terminal:

    curl -fsSL https://opencode.ai/install | bash

    Windows terminal: npm i -g opencode-ai.

  2. Copy your key

    Settings → Aelius Code. No key? Get one.

  3. Quit opencode, then run one line

    Paste your key when asked.

    irm https://aeliusai.com/code/opencode-setup.ps1 | iex

    In PowerShell (Start → type powershell).

    curl -fsSL https://aeliusai.com/code/opencode-setup.sh | sh

    In Terminal (Mac: Cmd + Space → terminal).

    It writes opencode's settings file and backs up the old one. Windows script · Mac/Linux script.

  4. Open your project

    Desktop: Add project → folder → New session. Terminal: cd into it, run opencode. The model button should say Aelius Code:

    The opencode message box with the model button reading Aelius Code, circled

    If not, click it and pick it (terminal: /models).

    The opencode model menu with the Aelius Code model circled
  5. Ask it to do something

    opencode showing that Aelius Code read calc.py, edited it and reported the fix
    One bug fixed in 12 seconds.

If something's wrong

ProblemFix
No Aelius Code in the list Fully quit opencode (check the Windows tray), redo step 3.
Used Connect provider / Custom That can't add Aelius. Use step 3.
Missing or invalid API key Copy the key again, redo step 3.
Says it can't view images Settings from before 12 October. Redo step 3.
Slow first reply Normal: one-time download, or a short queue.
Advanced

Keep the key out of the file

Set "apiKey": "{env:AELIUS_CODE_API_KEY}" and export that variable. The desktop app may not see shell variables.

What the file sets

aelius
Provider name; matches "model": "aelius/…".
baseURL
https://code.aeliusai.com/v1
limit.context
When to compact. Too high and prompts get rejected.
headerTimeout / chunkTimeout
Waits longer than the 5-minute default when busy.
attachment / modalities
Lets it send images.
small_model
Used for titles and summaries.

File locations

WhatmacOS and LinuxWindows
Settings ~/.config/opencode/opencode.json %USERPROFILE%\.config\opencode\opencode.json
Saved keys ~/.local/share/opencode/auth.json %USERPROFILE%\.local\share\opencode\auth.json
Logs ~/.local/share/opencode/log/ %USERPROFILE%\.local\share\opencode\log

A project's own opencode.json overrides it. Never commit a key.

Anything else

Any tool that takes a base URL, key and model works. To test your key:

curl https://code.aeliusai.com/v1/chat/completions \
  -H "Authorization: Bearer aelius_code_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3.8-27b",
    "messages": [{"role": "user", "content": "Reply with the word ready."}],
    "stream": false
  }'

Endpoints

POSThttps://code.aeliusai.com/v1/chat/completions

Standard OpenAI Chat Completions, with tools and streaming. Reasoning arrives as reasoning_content.

POSThttps://code.aeliusai.com/v1/completions

Legacy text completion.

GEThttps://code.aeliusai.com/v1/models

The one model and its context length. Needs a key, so a bad key often shows up as an empty model list.

Limits

Credits are per account, across all keys. Request limits are per key.

LimitFreePro At the limit
Credits per 5 hours 150 1,500 429 quota_exceeded
Credits per week 350 3,500 429 quota_exceeded
Requests per minute, per key 40 120 429
Turns at once, per key 2 4 429
Requests per 5 hours, per key 184 1,842 429 quota_exceeded
Keys per account 50 50 Revoke one first
Request body 64 MB64 MB 413

Retry-After always has the exact wait. Your usage is in Settings → Aelius Code.

How credits work

Like Codex: a rolling five-hour window that starts at your first request, plus a weekly cap. Failed turns are free.

TokenCredits per million
Output (what the model writes) 500
New input 100
Cached input (sent before) 10

A typical agent turn costs about 1.14 credits, so a free window is roughly 130 turns. An agent running flat out can use that in half an hour.

The context window

262,144 tokens per request, prompt and reply together. GET /v1/models reports it, but some clients guess from the model name instead (Qwen Code shows 1,000k). If your editor shows a different number, set it by hand.

One allowance per network

While one free account on a network is at its limit, other free accounts on that network get network_quota_exceeded until it resets. Dodging limits with extra accounts, keys, VPNs or proxies breaks the Terms (§7.6). Sharing a connection with another user? Tell us.

Errors

StatusCodeMeaning
401invalid_api_key No key or a wrong one. Check for a copied space.
401revoked_api_key Revoked. Create a new one.
403account_suspended Account suspended.
429rate_limit_error Too many requests or too many at once.
429quota_exceeded Five-hour or weekly allowance used up.
429network_quota_exceeded Another free account on your network is at its limit.
503verification_unavailable Retry in a few seconds. Your key is fine.
502— The model is restarting.

Data and privacy

Get a key · The text and vision API · Contact