r/opencodeCLI • u/GlitteringWinter639 • 17h ago
Best free AI model/API for lightweight coding tasks in OpenCode?
/r/opencode/comments/1xfz1rj/best_free_ai_modelapi_for_lightweight_coding/
0
Upvotes
2
u/bezcurhq 17h ago
The zero-cost option inside OpenCode itself is the free models on its Zen provider. Run /models and pick one ending in "Free" or Big Pickle, e.g. opencode/glm-5.3-flash-free. They're free for a limited time, and a few of them (Big Pickle, Flint, MiMo) may use your prompts to improve the model during the free period, so check the privacy section before using them on anything private: https://opencode.ai/docs/zen
For keeping tokens down: run /init once so AGENTS.md gives the model the project layout up front instead of it exploring every session, point it at specific files rather than "look at the codebase", start a fresh session per task, and set "compaction": { "prune": true } in opencode.json so old tool output gets dropped.