Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Why I moved my homelab's coding agent from Claude to OpenCode + OpenRouter — and what it actually costs now

Описание и применение

Перенос автоматизации из одного поставщика в OpenCode + OpenRouter снизил ежемесячные расходы до цены кофе, избавил от зависимости от одного провайдера и позволил гибко выбирать модели по стоимости и сложности задач.

Задача

The homelab automation was tightly coupled to a single vendor’s agent, model, and subscription, creating a single point of failure, inflexible cost structure, and limited ability to run locally for cheap tasks.

Результат

The new architecture reduces monthly costs to roughly the price of a coffee, eliminates vendor lock‑in, and provides flexibility to route tasks to the most cost‑effective model while maintaining local execution for simple jobs.

Рабочий процесс

  • 1. Install OpenCode as the coding agent on local infrastructure.
  • 2. Configure OpenRouter as the model layer API endpoint.
  • 3. Set the desired model (frontier, cheap, or local) in OpenCode’s configuration.
  • 4. Run automation tasks; OpenCode routes requests to the configured model via OpenRouter.
  • 5. Monitor and adjust model selection or add new models by editing a single config line.
  • 6. Maintain a blocklist of models that fail tool‑calling or truncate context.
  • 7. Use local models for low‑complexity tasks to keep costs near zero.
  • 8. Pay per token for expensive frontier model usage, resulting in a monthly bill comparable to a coffee.

Доказательства

Most requests are routed to cheap or free models. The boring, high-volume work doesn't touch an expensive model at all.

Источник

A lot runs locally for £0. Anything a small local model can handle — and that's more than you'd think for summarise/triage/draft work — runs on my own hardware and costs only electricity.

Источник

Not every model can drive an agent. Agentic work needs reliable tool‑calling… I've had to measure this per-model and keep a blocklist of ones that quietly fail.

Источник

  • Дата записи: 2026-09-15T17:15:13.739Z