API Reference

Connect your tools

The Ealna API is OpenAI-compatible, so any tool that accepts a custom base URL can point at it — and every completion still ships a Green Compute Certificate.

Invite-only during beta. API access is gated by a wallet whitelist. If your wallet isn't whitelisted yet, connect it and hit Request access in the dApp under Developers.

opencode

1. Once whitelisted, generate a key in the dApp under Developers.

2. Export it so opencode can read it:

bash
export EALNA_API_KEY=ea_live_…

3. Add Ealna as a provider in your opencode.json (project root or ~/.config/opencode/):

json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "ealna": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ealna",
      "options": {
        "baseURL": "https://ealna.com/api/v1",
        "apiKey": "{env:EALNA_API_KEY}"
      },
      "models": {
        "ealna-glm": {},
        "ealna-kimi": {},
        "ealna-qwen": {}
      }
    }
  }
}

Run opencode, hit /models, and pick an Ealna model — or set "model": "ealna/ealna-glm" as the default in the same config.

Claude Code

Soon. Claude Code speaks the Anthropic Messages format rather than OpenAI's, so it needs an Anthropic-compatible endpoint — that's on the way. Until then, use opencode or any OpenAI SDK.