Skip to content

Integration guide

Use GreenPT in OpenCode

OpenCode is a terminal-native coding agent, and GreenPT is one of its built-in providers. Run opencode auth login, pick GreenPT, paste your API key, then select greenpt/glm-5.3 under /models. There is no provider block and no config file to write.

Two commands, about a minute. Every GreenPT model shows up in the picker automatically, so you never hand-maintain a list of ids.

Setup

Connect OpenCode to GreenPT

OpenCode ships with GreenPT as a provider, so there is no base URL, adapter, or model list to enter. You only sign in and choose a model.

  1. Install OpenCode

    Install the CLI globally. You also need a GreenPT API key from account.greenpt.ai (14-day free trial, no credit card).

    Terminal
    npm install -g opencode-ai
  2. Sign in to GreenPT

    Run the login command and choose GreenPT from the provider list, then paste your key. OpenCode stores it in ~/.local/share/opencode/auth.json. Inside a running session the same flow is the /connect command.

    Terminal
    opencode auth login
    # choose GreenPT from the list, then paste your API key
  3. Pick a model

    Start opencode in a project and run /models. Every GreenPT model appears under the GreenPT provider, so you can switch between glm-5.3, kimi-k3, and deepseek-v4-flash-0731 per task.

    Terminal
    opencode          # then run /models and pick greenpt/glm-5.3
    opencode models greenpt   # or list every GreenPT model first

Prefer not to store the key? Export GREENPT_API_KEY in your shell instead and skip the login step. To pin a default model for a repository, add a one-line opencode.json with "model": "greenpt/glm-5.3".

Pick a model

Three open coding models, one key

glm-5.3 is the flagship for agentic software engineering. kimi-k3 takes the hardest refactors, and deepseek-v4-flash-0731 handles routine edits at a fraction of the cost. All open-weight, all hosted in the EU, and the same key reaches every other GreenPT model too.

Compare all coding models

Why GreenPT

Why teams point OpenCode at GreenPT

Same agent, same workflow, different footprint. GreenPT serves open-weight coding models from green EU data centres, with privacy guarantees that proprietary defaults do not offer.

  • No training on your code

    Prompts and code are never used for training. GDPR-compliant, EU-based processing with DPAs on request.

  • Open-weight models

    glm-5.3, Kimi K3, and DeepSeek V4 Flash. You know exactly what you run.

  • Renewable EU infrastructure

    Scaleway green data centres, 100% renewable energy, PUE 1.25 and WUE 0.25, with CO2 tracked per request.

  • One key for everything

    The same GREENPT_API_KEY also serves chat, embeddings, reranking, OCR, speech-to-text, and web search.

Frequently asked questions

Which GreenPT model should I use in OpenCode?

glm-5.3 for agentic, multi-file work, kimi-k3 for the hardest refactors, and deepseek-v4-flash-0731 for routine edits at a fraction of the cost. Every other GreenPT model is in the same picker.

Compare the coding models →
Do I still need a provider block in opencode.json?

No. GreenPT is a built-in OpenCode provider, so the base URL, the adapter, and the model list all come with it. A config file is only useful if you want to pin a default model for a repository.

Does GreenPT train on my code?

No. GreenPT never trains models on your prompts, code, or conversations. Processing happens entirely inside the EU with full GDPR compliance, and data processing agreements are available on request.

How is this more sustainable than the default setup?

GreenPT models run in Scaleway green EU data centres on 100% renewable energy, with a PUE of 1.25 and a WUE of 0.25, well below industry averages. CO2 and energy usage are tracked per request, so you can report the footprint of your coding agent instead of guessing it.

What does it cost?

You pay per token through GreenPT API credits, and every new account starts with a 14-day free trial, no credit card required. Open-weight models are markedly cheaper to run than proprietary frontier models, and you can cut spend further with the Honey agent skill.

View pricing →

Start coding greener

Your agent, our models, less carbon .

Start a free 14-day trial, no credit card. Point OpenCode at one OpenAI-compatible endpoint and run glm-5.3 and friends on 100% renewable energy.

  • 100% Renewable
  • EU Hosted
  • OpenAI-compatible