An AI coding assistant: an alternative to Claude Code and Codex, without the subscription

Claude Code, Codex and Cursor are each good coding agents, but they come with a monthly subscription, a foreign card, an account with their maker, and a usage cap that stops you after a few hours. Hormouz Code is another way: you install an open agent such as opencode or Cline and get the same strong models, Claude, GPT, DeepSeek, GLM and Grok, from Hormouz. You pay for what you use, in rial.

Create an account

What is the best alternative to Claude Code and Codex?

For work in the terminal, opencode is the closest replacement: it reads your project, edits files, runs commands and shows you each change step by step. If you work in an editor, Cline in VS Code does the same job. Both are open source and free, and both use whatever model you give them.

The real difference is the model, not the tool. With Hormouz Code you give opencode the same Claude Sonnet 5.5 or GPT-6.2 Sol, and switch to DeepSeek V4 Pro or GLM 5.3, which cost several times less, for simpler work.

Which model is best for coding?

For hard work such as big refactors, tricky bugs and long agent runs: Claude Sonnet 5.5 or GPT-6.2 Sol. For everyday coding at a low price: DeepSeek V4 Pro, GLM 5.3 or Grok 4.7. For small, quick edits: Claude Haiku 5.5, GLM 5.3 Flash or DeepSeek V4.1 Flash.

As of November 2026, Hormouz Code takes 80% off Claude and GPT (50% off GPT-6.2 Astra and GPT-6 Astra), 70% off GLM, and 60% off DeepSeek and Grok, compared with the normal Hormouz price. The Hormouz Code page lists the exact price of each model.

Subscription or pay as you go?

If you use one model all day, every day, and can pay its maker's subscription, the subscription is often the better deal. If your usage goes up and down, you have no foreign card, you worry about your account getting banned, or you want the right model for each task, paying as you go is cheaper and simpler.

Hormouz Code has no 5-hour window to stop you mid-task. Each account has a weekly allowance, and the wallet balance never expires.

Which tools does it work with?

Any tool that takes an OpenAI-compatible base URL and key: opencode, DeepSeek Harness, Zcode, Cline, VS Code, Cursor, JetBrains AI Assistant and Neovim. Claude Code itself only talks to Anthropic's API and the Codex CLI needs the Responses API, so those two don't connect directly; opencode does the same job.

Start in three steps

Create an account and get trial credit. On the Hormouz Code page, pick your tool and make a key in one click. Copy the ready config; the base URL is https://codeapi.hormouz.net/v1. The sample below is an opencode.json file.

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "hormouz": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Hormouz",
      "options": { "baseURL": "https://codeapi.hormouz.net/v1", "apiKey": "ng-…" },
      "models": {
        "anthropic/claude-sonnet-5.5": { "name": "Claude Sonnet 5.5" },
        "deepseek/deepseek-v4-pro": { "name": "DeepSeek V4 Pro" }
      }
    }
  },
  "model": "hormouz/anthropic/claude-sonnet-5.5"
}

FAQ

What is the best alternative to Claude Code?
opencode in the terminal or Cline in VS Code, with models from Hormouz Code. You get the same kind of agent and use Claude, GPT, DeepSeek, GLM or Grok with no monthly subscription.
What is a cheaper alternative to Codex for coding?
An open agent such as opencode with GPT-6.2 Sol or DeepSeek V4 Pro from Hormouz Code. On Hormouz Code, GPT-6.2 Sol is 80% and DeepSeek 60% below the normal Hormouz price.
Can I use Claude in opencode?
Yes. Add Hormouz to opencode as an OpenAI-compatible provider with the base URL https://codeapi.hormouz.net/v1, then choose Claude Sonnet 5.5, Sonnet 5 or Haiku 5.5.
Do Claude Code or the Codex CLI connect to Hormouz?
No. Claude Code only knows Anthropic's API, and the Codex CLI needs the Responses API. Use opencode instead.
Do I need a monthly subscription for an AI coding assistant?
No. On Hormouz Code you top up your wallet in rial and pay only for what you use.
Do I need a VPN or a foreign card?
No. Hormouz Code works from inside Iran without a VPN, and you pay with an Iranian bank card.

Hormouz AI: one fast, reliable API for every AI model.