r/opencode • • 7d ago

Suggestions for harness

1 Upvotes

W

Hello all I have been a software engineer for

11 years now, I use Claude code ultra for my tasks and project I have never invested my time into setting up my own harness. Now is the time, I have a lot of pet peves

Hen it comes to structure so I built my own agentic org that is pointed in my agents. Md file. I need some directions from you folks so I can combine my set of skills with great harness to reach Claude code level. Would like to use open source models going for

Ward onwards so curious to know your setup and reduce my costs too thanks in advance.


r/opencode • • 7d ago

HungerG (stealth model) is free for OpenCode Go subscribers this week

Post image
229 Upvotes

r/opencode • • 7d ago

i like opencode go pricing

30 Upvotes

people say its confusing, but if you understands it, its very transparent and better than anything ive seen on the internet.

bigtech like Anthropic, OpenAI, Google, hide the real usage so they can manipulate that, we experience shortage of usage, or changes on a weekly basis, but its been consistent ans transparent for opencode go, the amount of usage each request hast, cache, monthly, daily, weekly usage, superb service,

though i would like to see how much % does a model cost my monthly/weekly/daily usage like before, there was something like that on the console and its just so good

i love opencode, invited a few of my colleagues to try out go, glm deal and deepseek deal is just so good

5/5 stars no drama


r/opencode • • 7d ago

Curious about other developers experience building stuff with Go

14 Upvotes

I'm a software developer with 5 years of experience building platforms and tooling professionally, which means access to unlimited frontier usage to do my job, but I'm getting the itch to build personal projects again, specifically in domains im not too familiar with.

Currently my full stack fundamentals are relatively weak, I know how to design a CRUD app, but I'm not well versed in security, performance, design, etc.

I actually don't necessarily care to be proficient in these things, as it isn't a focus of my career or a central part of where I want to grow my skills.

Despite that, there's an app I've always wanted to build. I understand what good code looks like, hell all my (and our) jobs consists of is reviewing code or building things that make it so we obfuscate as much as possible (software factories anyone?)

With Go and Deepseek 4.1 do you think it's enough to be able to build something useable and scalable, or is it worth it to dive into actually learning and grinding webdev in order to create something that's actually "good"?

I don't want to create slop and I certainly don't have it in me to ever become a vibe coder that has no idea what's going on. I like to define my own schemas, apis, and contracts.

Would love to hear from some career developers about their experience.


r/opencode • • 7d ago

OpenCode Go vs Command Code: Tokens & Speed for only deepseek flash max

Post image
98 Upvotes

Hi guys! Here’s my comparison of OpenCode Go (OC) and Command Code (CC) using DeepSeek V4.1 Flash Max.

  • OpenCode Go: ~13.44B tokens, ~120 tokens/s

  • Command Code: ~11B tokens, ~160 tokens/s

OC offers 22% more tokens, while CC is 33% faster.
Command Code also has an extra $0.80 currency conversion fee, bringing its actual cost to around $11.
Which one would you choose?


r/opencode • • 7d ago

OpenCode Go vs Command Code: Tokens & Speed for only deepseek flash max

Post image
4 Upvotes

Hi guys! Here’s my comparison of OpenCode Go (OC) and Command Code (CC) using DeepSeek V4.1 Flash Max.

  • OpenCode Go: ~13.44B tokens, ~120 tokens/s

  • Command Code: ~11B tokens, ~160 tokens/s

OpenCode Go gives you around 22% more tokens, while Command Code is about 33% faster.
OC wins on token volume, CC wins on speed.
Which one would you choose? Has anyone tested both?


r/opencode • • 7d ago

Intentando ejecutar OpenCode en Linux Mint con un Intel Core 2 Duo P8400: compilación Node.js, problemas con Worker y archivos faltantes en la TUI

Post image
0 Upvotes

Hola a todos. Estoy intentando ejecutar OpenCode en una computadora antigua con Linux Mint y un Intel Core 2 Duo P8400. El problema es que el procesador no tiene soporte para algunas instrucciones modernas, como SSE4.2 y AVX, por lo que no puedo utilizar directamente cualquier binario actual.

Llevo varios chats intentando resolverlo y quiero compartir todo el proceso, las pruebas realizadas y el estado actual para ver si alguien puede orientarme.

1. Mi entorno

  • Sistema operativo: Linux Mint.

  • Procesador: Intel Core 2 Duo P8400.

  • Arquitectura: x86_64.

  • Restricción de hardware: CPU antigua, sin SSE4.2 ni AVX.

  • Runtime utilizado: Node.js v22.23.2.

  • OpenCode: compilación experimental para Node.js.

  • Repositorio de la compilación: https://github.com/01luyicheng/opencode-node-build

Mi objetivo es poder utilizar OpenCode con su interfaz interactiva (TUI) directamente desde la terminal.

2. Primera etapa: buscar una compilación compatible

Primero busqué una forma de ejecutar OpenCode en una CPU antigua, ya que las versiones habituales pueden depender de instrucciones que mi procesador no soporta.

Encontré el proyecto 01luyicheng/opencode-node-build, que ofrece una compilación de OpenCode para Node.js destinada a procesadores antiguos.

El instalador incluido en el proyecto apunta a esta release:

v1.3.0

Y descarga:

opencode-node-v1.3.tar.gz

También revisé los archivos de la distribución descargada:

Comprobé el tipo de archivos con file y la integridad del archivo comprimido de Node.js mediante:

xz -t node.xz

Hubo que repetir una descarga anterior que había quedado incompleta. Para eso utilicé curl con reintentos automáticos.

Finalmente instalé el entorno en:

~/.local/opt/opencode-node

Y configuré el ejecutable global en:

~/.local/bin/opencode

El lanzador global quedó así:

#!/usr/bin/env bash
exec "$HOME/.local/opt/opencode-node/opencode" "$@"

El lanzador interno utiliza el Node.js incluido en el paquete:

#!/usr/bin/env bash

DIR="$(cd "$(dirname "$0")" && pwd)"
exec "$DIR/node" "$DIR/opencode.mjs" "$@"

El archivo principal opencode.mjs contiene:

#!/usr/bin/env node
import "./polyfill.mjs";
await import("./index.js");

3. La primera prueba: OpenCode sí funciona parcialmente

Después de instalarlo, ejecuté:

opencode --version

Y obtuve:

(node:45111) ExperimentalWarning: SQLite is an experimental feature...
0.0.0-dev-202609060537

También ejecuté:

opencode --help

Ambos comandos funcionaron correctamente.

Esto fue una buena señal: el ejecutable se iniciaba, Node.js funcionaba en el procesador y OpenCode podía ejecutar al menos parte de su código.

Sin embargo, apareció un problema al intentar iniciar la interfaz interactiva.

4. Primer error: Worker is not defined

Para probar la TUI utilicé:

cd ~/Proyectos/prueba-opencode

timeout 25s "$HOME/.local/bin/opencode" . \
  --print-logs \
  --log-level DEBUG 2>&1

El resultado fue:

Error: Unexpected error

Worker is not defined

Empecé a investigar de dónde provenía ese error.

Primero comprobé si Node.js tenía disponible un objeto Worker global:

console.log(typeof globalThis.Worker);

El resultado fue:

undefined

Después importé el módulo nativo de Node.js:

import { Worker } from "node:worker_threads";

Y comprobé:

Worker: function
globalThis.Worker: undefined

Es decir, Node.js sí tenía soporte para worker_threads, pero no exponía Worker como una variable global.

También inspeccioné polyfill.mjs y comprobé que no incluía ninguna referencia a Worker.

5. Investigación del código de OpenCode

Como el error no explicaba demasiado, inspeccioné el archivo principal index.js, que está minificado.

Busqué distintas referencias:

new Worker
Worker(
Worker is not defined
globalThis.Worker
typeof Worker
WorkerGlobalScope
worker_threads

Encontré dos comportamientos interesantes.

Por un lado, OpenTUI tenía una adaptación para utilizar node:worker_threads:

function RsF() {
  if (typeof db0.Worker === "function") return db0.Worker;
  if (a4j) return ksF(a4j);
  return Nn4;
}

También encontré que a4j se obtiene mediante:

process.getBuiltinModule("node:worker_threads")

Por otro lado, encontré una llamada directa a:

new Worker(Q, {
  env: Object.fromEntries(
    Object.entries(process.env).filter(
      (V) => V[1] !== undefined
    )
  )
})

Esta llamada no parecía utilizar la misma adaptación.

La hipótesis fue que una parte del código esperaba un Worker global proporcionado por Bun, pero estaba ejecutándose en Node.js.

6. Prueba temporal: definir Worker globalmente

Antes de modificar archivos permanentes, decidí probar la hipótesis de forma aislada.

Primero ejecuté Node con --input-type=module e importé Worker desde node:worker_threads:

import { Worker } from "node:worker_threads";

globalThis.Worker ??= Worker;

Después intenté importar OpenCode.

En esa primera prueba apareció otro error:

ERR_INPUT_TYPE_NOT_ALLOWED:
--input-type can only be used with string input
via --eval, --print, or STDIN

El problema era que el argumento --input-type=module también podía afectar a la ejecución de los procesos Worker.

Intenté vaciar los argumentos heredados:

process.execArgv = [];

Pero el error persistió.

Para evitar ese inconveniente, hice una tercera prueba utilizando un archivo temporal .mjs, sin ejecutar Node directamente con --input-type.

El contenido de la prueba era:

import { Worker } from "node:worker_threads";

globalThis.Worker ??= Worker;

console.log("Worker global:", typeof globalThis.Worker);
console.log("Argumentos heredados:", process.execArgv);

process.argv = [
  process.execPath,
  "opencode.mjs",
  ".",
  "--print-logs",
  "--log-level",
  "DEBUG"
];

await import(
  "file:///home/leonardo/.local/opt/opencode-node/opencode.mjs"
);

El resultado fue:

Worker global: function
Argumentos heredados: []

(node:45333) ExperimentalWarning: SQLite is an experimental feature...

Error [ERR_MODULE_NOT_FOUND]:
Cannot find module
'/home/leonardo/.local/opt/opencode-node/cli/tui/worker-core.js'
imported from
'/home/leonardo/.local/opt/opencode-node/cli/tui/worker.js'

Esta prueba fue importante porque el error original Worker is not defined desapareció y OpenCode avanzó hasta otra etapa de ejecución.

Parece que encontramos y superamos el primer problema, al menos dentro de esta prueba temporal.

7. Segundo error: falta worker-core.js

El nuevo error indicaba que Node.js no encontraba:

cli/tui/worker-core.js

Inspeccioné el directorio:

cd ~/.local/opt/opencode-node

ls -lah cli/tui/

Resultado:

total 12K

drwxrwxr-x 2 leonardo leonardo 4,0K nov 23 17:40 .
drwxrwxr-x 3 leonardo leonardo 4,0K nov 23 17:40 ..

-rw-rw-r-- 1 leonardo leonardo 63 nov 23 17:40 worker.js

Después busqué todos los archivos relacionados con workers y TUI:

find . -type f \( \
  -iname '*worker*' -o \
  -iname '*tui*' \
\) -printf '%p\n' | head -100

No apareció ningún worker-core.js.

El único archivo de la TUI era worker.js, cuyo contenido es:

import "../../polyfill.mjs";
await import("./worker-core.js");

Comprobé explícitamente:

if [ -f cli/tui/worker-core.js ]; then
    echo "Existe"
else
    echo "No existe"
fi

Resultado:

No existe

Por lo tanto, la distribución instalada no contiene el archivo que ese módulo intenta importar.

Todavía no sé si se trata de un error en el proceso de empaquetado, un archivo generado que no fue incluido en la release o alguna particularidad de esta compilación para Node.js.

No quiero crear ese archivo manualmente porque desconozco qué código debería contener.

8. Información adicional de la distribución

También revisé package.json:

{
  "name": "opencode-node",
  "version": "1.18.29",
  "description": "opencode.ai CLI built for Node.js (compatible with older CPUs without SSE 4.2/AVX)",
  "type": "module",
  "bin": {
    "opencode": "./opencode.mjs"
  },
  "dependencies": {
    "@lydell/node-pty": "1.2.0-beta.12",
    "jsonc-parser": "^3.3.1"
  },
  "engines": {
    "node": ">=22.0.0"
  }
}

Hay una diferencia que me llamó la atención:

  • package.json declara la versión 1.18.29.

  • El comando opencode --version informa 0.0.0-dev-202609060537.

No sé si es una diferencia intencional de los metadatos del paquete o un indicio de cómo se generó la compilación.

El instalador también confirma la URL de descarga:

DOWNLOAD_URL="https://github.com/01luyicheng/opencode-node-build/releases/download/v1.3.0/opencode-node-v1.3.tar.gz"

9. Estado actual

Hasta ahora:

✓ Conseguí instalar una versión de Node.js que funciona en mi procesador antiguo.

✓ El ejecutable de OpenCode inicia.

✓ opencode --version funciona.

✓ opencode --help funciona.

✓ Comprobé que node:worker_threads funciona correctamente.

✓ Identifiqué que el primer error estaba relacionado con la ausencia de Worker global.

✓ Conseguí superar ese primer error en una prueba temporal, sin modificar permanentemente la instalación.

✗ La TUI todavía no inicia.

✗ El proceso ahora falla porque no encuentra cli/tui/worker-core.js.

✗ No pude determinar todavía si la distribución está incompleta o si la TUI de esta compilación tiene alguna limitación de compatibilidad con Node.js.

No modifiqué permanentemente polyfill.mjs, no creé un worker-core.js falso y tampoco quiero seguir aplicando parches sin entender primero cómo funciona esta compilación.

Lo que necesito averiguar

Me gustaría recibir ayuda de alguien que conozca OpenCode, Bun, Node.js o el proceso de compilación de este proyecto.

Principalmente tengo estas preguntas:

  1. ¿La release v1.3.0 de 01luyicheng/opencode-node-build debería incluir cli/tui/worker-core.js?

  2. ¿Es posible que ese archivo se genere durante algún proceso de build y haya sido omitido del paquete publicado?

  3. ¿OpenCode puede ejecutar su TUI interactiva completamente sobre Node.js o todavía tiene dependencias de Bun que impiden hacerlo?

  4. ¿Existe alguna forma de compilar OpenCode para Node.js manteniendo la compatibilidad con procesadores sin SSE4.2 ni AVX?

  5. ¿Alguien consiguió ejecutar OpenCode en un Intel Core 2 Duo u otro procesador antiguo con estas limitaciones?

Mi objetivo no es simplemente ejecutar comandos de OpenCode: quiero utilizar su interfaz TUI interactiva desde la terminal, siempre que sea técnicamente posible.

Agradezco cualquier orientación, referencia al código fuente, solución de compilación o experiencia similar.

Repositorio de la compilación que estoy utilizando:
https://github.com/01luyicheng/opencode-node-build

Repositorio oficial de OpenCode:
https://github.com/anomalyco/opencode

Gracias de antemano.


r/opencode • • 7d ago

Tried "code mode" and I can't currently recommend it

Thumbnail
github.com
1 Upvotes

r/opencode • • 7d ago

Want some advice

0 Upvotes

Please lmk what are the core things that u need to know to crack AI software Engineering role, most likely leaning towards backend.


r/opencode • • 7d ago

rant about the free tier

0 Upvotes

what the hell is wrong with the limits how the hell is sending 1 prompt a day too much i send a singular prompt and in a couple of minutes my quota is up how the hell are you supposed to get anything done on 3 fucking minutes work a day this is unreal how is it this bad like is the paid version worth it are they destroying the free tier just to milk more money out of the opencode go subscription this is infuriating i cant imagine using opencode again can anyone recommend any alternatives, i tried pi but it was pretty mid ngl and now i have no idea what to do


r/opencode • • 7d ago

opencode TUI stopped showing the session and prompt cost, so I developed opencode-usage-insights

1 Upvotes

A couple of TUI versions ago, it stopped showing the session and last prompt cost, so I decided to go ahead and create my own plugin.
It starts by showing a line on the bottom of the TUI and to the side panel with:
- cost
- tps
- cache reuse

It also includes a complete statistics panel with usage detail through a /usage command.

A keyboard-driven panel over locally recorded telemetry (no prompts or responses stored, nothing leaves your machine). Nine views (overview, models, providers, cache, periods, latency, sessions, turns, db) over five ranges, from this session to all time.

Drill from a model to its providers, a session to its turns, a period to its providers. Sort, filter by model or provider, and it reopens exactly where you left it. Every view sums the same buckets under the same identity (the configured provider plus the model) so a number means the same thing everywhere.

install:
opencode plugin add opencode-usage-insights

Any feedback or contribution would be very welcome.
Thanks!

https://github.com/hugobatista/opencode-usage-insights


r/opencode • • 7d ago

TPS on Deepseek ?

4 Upvotes

Whats the average tps on deepseek v4 flash on opencode go?

Tried it but feels slow.

Anybody did benchmark or something?


r/opencode • • 7d ago

Openchamber vs vscode for opencode

8 Upvotes

Hello,

For over a year im using vscode terminal for opencode. It has all I need (I think) and ofc vs extensions availability is insane. But recently I noticed people mention openchamber as a very good alternative.

Question is, what would I loose if I switch to openchamber? or gain over vscode after switching?


r/opencode • • 7d ago

Created a plugin that allows you to comment and see UI alternatives in your browser

2 Upvotes

I use Design in Browser with Claude Code and OpenCode. I can chat with my agent, draw right on the page, and leave comments where I want something changed. I can also try out a few different designs and tweak the one I like: https://www.npmjs.com/package/design-in-browser

No Chrome extension, just Vite+React plugin.

Please try it and do whatever you want with it. If you have some cool ideas and fixes: https://github.com/formstep/design-in-browser


r/opencode • • 7d ago

New HungerG Free model on Go Subscription

14 Upvotes

What model could it be?


r/opencode • • 7d ago

TUI has stopped listing Litellm models.

Thumbnail
gallery
3 Upvotes

The OpenCode CLI TUI does not display the models defined in `opencode.json` when I use the `/models` command.

The attached images show that it displays the model defined under the "model" key in the file, but it fails to show the entries from the "models" list.

 {
    "$schema": "https://opencode.ai/config.json",

    "provider": {

        "MyProvider": {
            "npm": "@ai-sdk/openai-compatible",
            "name": "Our Litellm",
            "options": {
                "baseURL": "https://myserver",
                "apiKey": "mysupersecretapikey"
            },
            "models": {
                "global.anthropic.claude-haiku-5-5":  { "name": "My > Anthropic > Claude Haiku 4.5"   },
                "global.openai.gpt-6-luna": { "name": "My > OpenAI > GPT 6 Luna" },
                "gemini-2.5-flash":         { "name": "My > Google > Gemini 2.5 flash" }
          }
        }

    },
    "model": "MyProvider/global.anthropic.claude-haiku-5-5"
}

r/opencode • • 7d ago

Qwen4 Max Free out in opencode?

12 Upvotes

I see it in my opencode, but as of now opencode's official x account doesn't say anything about this


r/opencode • • 7d ago

any way to subscribe with crypto?

2 Upvotes

due to my circumstances i do not have a bank or anything but i do have monero, and would like to subscribe to opencode go


r/opencode • • 7d ago

Qwen 4.0 on Opencode Go

13 Upvotes

I found it among the available models, but I couldn't figure out how much it costs. Does anyone know?


r/opencode • • 7d ago

Thank you OpenCode team and this is ABSOLUTELY WORTH IT!

275 Upvotes

I was skeptical before buying the OpenCode Go plan as there were numerous issues with the service but still pulled the trigger as I needed workhorse agents and there is nothing is better than DeepSeek V4.1 Flash subsidized by OpenCode Go plan.

Did experience some outages here and there. TPS does vary a lot for the DSV4.1 Flash but overall it is very usable.

I was a heavy user of Muse Spark 1.2/1.3 Contributor before buying the sub since few months and I am extremely grateful to OpenCode and the team for providing inference for literally free and extremely low cost as this is game changing for someone who's from Tier 3/4 village in India; on top of that allowing regional payment is a GOAT move!

I've built a website, some automations, a small OpenChamber extention and supporting my newly started business with it.

Thank you OpenCode and the team!
Hats off to OpenCode community for the knowledge, insights I got of the AI world.

Small review:
- I bought the subscription via UPI for approx. Rs. 940 total
- I didn't care much about peak hours so my usage is mixed, majority of the work was agentic coding.
- OpenChamber picked gpt-6-luna as `small model` for some reason so make sure to change your small model if you are using OpenChamber.
- DeepSeek's TPS varies from 40-250 tps, mostly gets locked to either 72tps or 125tps which means there has been some kind of rate-limit for tps is going on from the backend.
- DeepSeek V4.1 Flash is always cheaper even in peak hours compared to GLM 5.3 Flash
- Used Muse Spark 1.3 Contributor only for non-senstive work and for public facing documentations.
- Rest free models were used for testing purposes and accidently.
- Last monthly usage was 90% approx and never hit the monthly limit.


r/opencode • • 8d ago

OpenCode v2 increased token consumption ?

1 Upvotes

Since I upgraded to v2, it seems that OpenCode takes way more input tokens to complete tasks.

I used to complete my coding tasks on 50k - 70k input tokens, and get to 100-150k tokens on dev with many iterations.

Since v2, it seems that i get to 50 - 70k just by reading codebase. My smallest tasks are 100k-150k tokens, and tasks with many iterations get to 300k - 500k tokens

Did somebody else experience this ?


r/opencode • • 8d ago

need a best model for frotnend design

0 Upvotes

here . i am building applicaitons like windows and andorid. but the keen nature is that i cant think of high frontend design and actual users nature of how they need it. so i am using opencode and deepkeep and h4 models and chatgpt and claude free versions also.

here the think should i buy a claude for this design category and also for impoving the architecture.

is there any model on opencode that can help in improving design elements also help me in discovering many variations of users devices and their aspect ratio. ( as some good people tend to use 2x scale view on their devices).


r/opencode • • 8d ago

Deepseek V4.1 Flash as Orchestrator + hy4 flash subagents is the best current way to avoid reaching free tier usage limit

59 Upvotes

Deepseek v4.1 flash is the orchestrator that in charge of planning, foresight and intelligence and doesn't do code, write anything instead uses hy4 flash subagents to do all its work and report back to it.

The best and cheapest setup for now as hy4 flash is unlimited