r/opencode • u/Successful_Dream_929 • 3d ago
TPS on Deepseek ?
Whats the average tps on deepseek v4 flash on opencode go?
Tried it but feels slow.
Anybody did benchmark or something?
r/opencode • u/Successful_Dream_929 • 3d ago
Whats the average tps on deepseek v4 flash on opencode go?
Tried it but feels slow.
Anybody did benchmark or something?
r/opencode • u/Sostrene_Blue • 4d ago
I know you might be tempted by the $500 free credit for GLM 5.3 or others, but don't forget that these models are much more expensive than DeepSeek, which really has an unbeatable price-to-performance ratio.
If you don't want to hit 100% of your monthly quota like happened to me, stick to DeepSeek V4.1 Flash and switch between "low" and "high" depending on the complexity of the requested task.
r/opencode • u/warpaint_james • 3d ago
r/opencode • u/MUJ_- • 3d ago
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 • u/andersonse • 4d ago
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 • u/mellosty • 3d ago
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 • u/pasteldebytes • 3d ago

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!
r/opencode • u/LegitMoth • 4d ago
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 • u/drsmba729 • 4d ago
r/opencode • u/General-Calendar9342 • 5d ago
See title. Really enjoying it, also because of the 60% discount
r/opencode • u/NotLeoBringas • 3d ago
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.
Mi objetivo es poder utilizar OpenCode con su interfaz interactiva (TUI) directamente desde la terminal.
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:
node.xzopencodeopencode.mjspackage.jsoninstall.shComprobé el tipo de archivos con file y la integridad del archivo comprimido de Node.js mediante:
xz -t node.xzHubo 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-nodeY configuré el ejecutable global en:
~/.local/bin/opencodeEl 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");Después de instalarlo, ejecuté:
opencode --versionY obtuve:
(node:45111) ExperimentalWarning: SQLite is an experimental feature...
0.0.0-dev-202609060537También ejecuté:
opencode --helpAmbos 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.
Para probar la TUI utilicé:
cd ~/Proyectos/prueba-opencode
timeout 25s "$HOME/.local/bin/opencode" . \
--print-logs \
--log-level DEBUG 2>&1El resultado fue:
Error: Unexpected error
Worker is not definedEmpecé 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:
undefinedDespués importé el módulo nativo de Node.js:
import { Worker } from "node:worker_threads";Y comprobé:
Worker: function
globalThis.Worker: undefinedEs 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.
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_threadsEncontré 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.
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 STDINEl 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.
El nuevo error indicaba que Node.js no encontraba:
cli/tui/worker-core.jsInspeccioné 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.jsDespués busqué todos los archivos relacionados con workers y TUI:
find . -type f \( \
-iname '*worker*' -o \
-iname '*tui*' \
\) -printf '%p\n' | head -100No 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"
fiResultado:
No existePor 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.
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.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"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.
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:
v1.3.0 de 01luyicheng/opencode-node-build debería incluir cli/tui/worker-core.js?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 • u/foucheta • 4d ago
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 • u/Le0_Mahendra • 4d ago
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 • u/Glittering_Worker577 • 3d ago
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 • u/GaneshYadav0 • 4d ago
r/opencode • u/Internal-Welcome-758 • 5d ago
For reference official deepseek api tokens/$ can be found in this discussion: here
Honestly I did try both official API and opencode go, couldn't tell the difference. Though I must say it was only 5$ of official api usage, so my sample size maybe too low. My setup is claude code with cc-fleet skill, claude spins up max 10 deepseek workers at a single time to get things done, reuse session as much as he can to maximize cache hit rate (my cache hit rate was around 97% which is decent). I found deepseek context auto compact around 350k to be the ideal ammount, above that increases unecessary costs with somewhat degrading performance (context rot). I hope opencode never changes deepseek $100 equivalent credits, it's insane value compared to official API.
r/opencode • u/basicduck3953 • 4d ago
I can understand tools, permissions, plugins and agents. Tools call external processes. Permissions are set by the harness and cannot fail (they are sort of deterministic instructions), unless the agent edits the project permissions file itself, which can be prevented from permissions themselves. Plugins plug in to the harness and change the harness itself.
But skills, instructions and agents are all text processed by LLM. From what I understood,
Skills - HOW to do something
Agents - overall WHAT to do + permissions
Instructions - KNOWLEDGE of what is happening
But they all seem to contain some aspects of the other. Are they redundant? Have I understood them incorrectly?
r/opencode • u/fraktura_gips • 5d ago
r/opencode • u/Tex-Twil • 4d ago
hi,
I’m using mostly Claude CLI and I’m looking for reasons to switch to OpenCode CLI. I know that in OC, I can use any other model providers but I anyway use only Anthropic models. What are your most liked “features” of OC?
EDIT: I’m asking about the harness itself, not the models
r/opencode • u/fapmasterr69 • 5d ago
Does this setup look good? I am on Go subscription and because Opencode decided to throw in $500 in GLM 5.3 usage, I decided to go with it.
r/opencode • u/Which_Lie_8932 • 5d ago
I realize running AI models costs money, but is it really so tight that I can only type in one prompt and the model rate limits after two actions? The model "read ." I'm not sure what that does completely, but I'd guess it just shows the model the directory structure rather than reading all the files (which still shouldn't reach rate limits)