Knowledge Base Sections ▾

Tools

OpenClaw + Gonka AI - affordable AI agents

OpenClaw - a framework for creating autonomous AI agents capable of performing complex tasks: research, code writing, business process automation. Agents work in a "think → act → observe" loop, autonomously decomposing tasks and calling tools.

The main problem with autonomous agents is cost. One agent can make 50-500 LLM calls per task. At OpenAI prices ($2.50-15/1M tokens), this is $5-50 per task. If the agent works continuously - the monthly bill reaches thousands of dollars. This is the difference between a profitable and unprofitable product.

JoinGonka Gateway reduces the cost by 2800 times: $0.001/1M tokens. An agent that cost $50 per task now costs $0.018. This makes autonomous agents economically viable even for startups and indie developers.

Step 1: Get API Key

Register with JoinGonka Gateway:

  1. Go to gate.joingonka.ai/register.
  2. Get a bonus of 10M free tokens.
  3. Create an API key in Dashboard → API Keys (format: jg-xxx).

This bonus is enough for hundreds of agent runs - the economics are drastically different compared to OpenAI.

Step 2: Configure OpenClaw

In the OpenClaw agent configuration, specify JoinGonka Gateway as the LLM provider:

# openclaw.config.yaml
llm:
  provider: openai
  base_url: https://gate.joingonka.ai/v1
  api_key: jg-your-key
  model: Qwen/Qwen3-235B-A22B-Instruct-2507-FP8

Or via environment variables:

export OPENAI_API_BASE=https://gate.joingonka.ai/v1
export OPENAI_API_KEY=jg-your-key

Tool calling: Qwen3-235B supports native tool calling - critically important for agent frameworks. The agent can call search, file reading, code execution, and other tools through the standard OpenAI function calling API.

Verification: Run a simple agent with the task "write hello world in Python and explain the code". If the agent completed the task, the setup is successful.

Economics of Autonomous Agents

Autonomous agents are among the most token-demanding applications. One agent cycle (prompt → tools → reflection) consumes 5-50K tokens. A complex task can require 50-500 cycles. Let's compare the economics:

ScenarioTokens per taskOpenAI GPT-4oJoinGonka Qwen3-235BSavings
Simple task (10 cycles)~500K$1.25 — $5.00$0.00052,500x — 10,000x
Medium task (100 cycles)~5M$12.50 — $50.00$0.0052,500x — 10,000x
Complex task (500 cycles)~25M$62.50 — $250.00$0.0252,500x — 10,000x
Month of continuous operation~5B$12,500 — $50,000$5.002,500x — 10,000x

At OpenAI's prices, autonomous agents are not economically viable for most tasks. At Gonka's prices, an agent can run 24/7 for $5 a month. This changes the model: agents transform from an "expensive toy" into a working tool.

For businesses: if your product uses AI agents (customer support, data analysis, automation), switching to Gonka can reduce costs by 99.96% — meaning increased margin or lower prices for customers.

Limitations: Qwen3-235B's context window is 128K tokens. For agents with very long histories (500+ cycles), context summarization may be required. The maximum length of each model response is 2048 tokens, which is sufficient for a typical agent cycle (instruction + tool call).

OpenClaw + Gonka = autonomous AI agents for $5/month instead of $12,500+ with OpenAI. 2800x savings make agents profitable even for indie developers. Native tool calling of Qwen3-235B ensures full compatibility.

Want to learn more?

Explore other sections or start earning GNK right now.

Get 10M free tokens →