DeepAgents Code logo
DeepAgents Code template

DeepAgents Code — GLM-5.2 on OpenRouter

A ready-to-run DeepAgents Code (dcode) coding agent pre-wired to GLM-5.2 on OpenRouter. Bring your OpenRouter key and code with an open-weight model for cents — shell tool enabled, GLM-5.2 set as the default model.

NewNew0 MB snapshotPro VM

What's inside

Harness

DeepAgents Code

Plan

Pro

vCPU

2

Memory

6 GiB

Snapshot

0 MB

About this template

DeepAgents Code + GLM-5.2 (OpenRouter)

A ready-to-run DeepAgents Code (dcode) coding agent, pre-wired to GLM-5.2 on OpenRouter — an open-weight model that reads files, edits code, and runs shell commands for a fraction of a frontier-lab subscription. The shell tool is enabled out of the box; the only thing you bring is your key.

Quick start (after forking)

  1. Add your OpenRouter key — BYOK, never snapshotted (it lives in ~/.deepagents/.env, which the template scrub drops):

    mkdir -p ~/.deepagents
    printf 'OPENROUTER_API_KEY=%s\n' "sk-or-v1-YOUR_KEY_HERE" > ~/.deepagents/.env
    chmod 600 ~/.deepagents/.env
    

    Get a key at https://openrouter.ai/keys.

  2. Run the agent — GLM-5.2 is already the default model (wired in ~/.deepagents/config.toml), so just:

    dcode
    

    One-shot headless task:

    dcode -n "create a FastAPI hello-world app and run it"
    

    Explicit model form (equivalent to the default):

    dcode --model openrouter:z-ai/glm-5.2
    

Optional

  • Web search: set TAVILY_API_KEY in ~/.deepagents/.env (https://tavily.com) to enable it. Without it, search is simply disabled — everything else works.

dcode is model-agnostic: swap --model for any OpenRouter / Anthropic / OpenAI / Fireworks / Baseten / local model you prefer.

Inside this fork

Forking copies this template into a brand-new, fully isolated microVM on your own subdomain. Here's exactly what lands in it.

  • DeepAgents Code agent

    The upstream harness, pre-installed — same version the creator ran.

  • Pro VM

    2 vCPU · 6 GiB RAM · 50 GiB disk.

  • Creator's /persist data

    The captured persist volume is copied byte-for-byte into your fork.

  • BYOK — your keys, your VM

    Add your model API keys after forking; they live only inside your microVM.

What you'll configure after forking

Secrets are scrubbed from shared templates — these are the names you supply in your agent's terminal once it boots.

Environment variables

  • OPENROUTER_API_KEY

Your turn

Your own DeepAgents Code — GLM-5.2 on OpenRouter, live in about 3 minutes.

Forking copies this DeepAgents Codeagent into a brand-new, fully isolated microVM on your own subdomain — the creator's /persist state and all. Add your own keys after it boots; they never leave the box. Don't love it? 30 days to get every cent back.

New paid VM · BYOK · 30-day money-back · ~3 min to provision