Setting up a production-ready agentic coding workspace does not require expensive closed-source model subscriptions. By combining OpenRouter's free tier (hosting Cohere North Mini Code) with Cloudflare Workers AI (hosting GLM-5.2), you can build a fully autonomous, zero-cost developer stack. This guide walks you through step-by-step credentials configuration and client launch.
Model Stack Specifications
| Feature | North Mini Code (OpenRouter Free) | GLM-5.2 (Cloudflare Workers AI) |
|---|---|---|
| Architecture | 30B MoE (3B active) | Dense Coding Model |
| Context Window | 32k tokens | 262k tokens |
| Native Features | Agentic coding loops | Native Tool Calling |
| Daily Limit | Model dependent (high) | 10,000 neurons/day ($0) |
Method 1: Cohere North Mini Code
Free via OpenRouter
North Mini Code is a 30B Mixture-of-Experts (MoE) model with only 3B active parameters, specifically tuned for multi-step agentic coding tasks.
1. Create an OpenRouter Account
- Go to OpenRouter.ai.
- Sign up or log in (no credit card or billing details required for free models).
2. Generate an API Key
- Navigate to Keys (or Account Settings -> API Keys).
- Click Create Key and give it a name (e.g.,
Coding Agents). - Copy the generated key immediately (it looks like
sk-or-v1-...).
3. Configure Environment Variables
For macOS / Linux (Bash):
1export OPENROUTER_API_KEY=your_copied_api_key_hereFor Windows (PowerShell):
1$env:OPENROUTER_API_KEY="your_copied_api_key_here"Tip: Add this command to your shell profile (~/.bashrc, ~/.zshrc) to make the variable persistent across sessions.
4. Add to Agent Configuration
Configure your developer agent (e.g., OpenCode, Hermes) to use the following provider credentials:
- Base URL:
https://openrouter.ai/api/v1 - Model ID:
cohere/north-mini-code:free
Method 2: GLM-5.2 Configuration
Free via Cloudflare Workers AI
GLM-5.2 is a state-of-the-art coding model featuring native tool calling capabilities and a massive 262,144 token context window, running 100% free with a daily allocation of 10,000 neurons (resets daily).
1. Create a Cloudflare Account
- Sign up for a free account at dash.cloudflare.com.
- No paid subscriptions are required for the daily free Neurons allocation.
2. Locate your Account ID & REST API
- From the left-hand navigation sidebar, toggle the AI menu and select Workers AI.
- On the Workers AI dashboard homepage, click the REST API button to load details.
- Locate and copy your alphanumeric Account ID displayed in the panel.
3. Create an API Token
- Go to My Profile (user icon in top-right menu -> click My Profile).
- Click API Tokens in the sidebar -> click Create Token.
- Choose Create Custom Token (at the bottom).
- Configure Custom Token permissions: Account -> Workers AI -> Edit.
- Click Continue to summary and confirm with Create Token.
- Copy the generated custom token.
4. Configure custom provider details
Add Cloudflare as a custom OpenAI-compatible endpoint in your agent configuration:
- Base URL:
https://api.cloudflare.com/client/v4/accounts/YOUR_ACCOUNT_ID/ai/v1 - Header Configuration:
Authorization: Bearer YOUR_API_TOKEN - Model ID:
@cf/zai-org/glm-5.2
Start Your Agent
Execution
Once your credentials are set, launch your coding agent environment (such as opencode or hermes-agent) pointing to the model you configured.
For example, to execute a local CLI developer agent using your OpenRouter free model parameters, run:
1hermes-agent --model cohere/north-mini-code:free --api-key $OPENROUTER_API_KEYYou now have a fully operational, zero-cost developer agent capable of reading file systems, performing search actions, executing CLI commands, and editing codebases.
Looking for advanced agent structures?
To explore persistent SQLite memories, telegram control loops, and custom terminal setups, read my comprehensive Hermes Agent Setup Guide.
Stack FAQs
Scale Your AI Infrastructure.
Ready to transition your workflows to multi-agent automation? Contact me today for a custom implementation audit.
Phone
+923464883396
Primary Email
info@aifloxium.online
Direct Email
muhammadshadabshams@gmail.com
Website
www.aifloxium.online