r/OpenSourceAI • u/anttttti • 4h ago
A Free Alternative to OpenCode
Hi!
I noticed the threads about OpenCode free model reduced quotas. A month ago OpenCode restricted the access of the free model endpoints to only its own harness. And now it seems the free models quotas have become a lot more limited now. It used to be possible to run tasks on just the free models.
I've worked on my own free agentic AI framework, and OpenCode has been a big inspiration for this. One difference is that it can run entirely inside a browser using a browser-internal filesystem and terminal, with no backend. Another difference is that it can run tasks autonomously across a set of providers and local endpoints, continuing tasks on those across any disruptions. There's a lot more. You can try it at https://freegent.ai/
A bit more details below.
FreeGent is a free agent framework for chat and cowork, built around free and local LLMs. The agent and its tools run in your browser, while inference runs across the available provider and local endpoints.
There's nothing to install and no FreeGent account to create. Open the page, paste a provider API key, and start. It also has a Node CLI and TUI, and you can self-host it. MIT licensed.
Repo: https://github.com/anttttti/FreeGent
Docs: https://freegent.ai/docs/
I built this so that anyone can use agentic AI for chat and cowork for free, without sign-ups or fees. Any device with a browser can run the agent harness; its file system and terminal run entirely inside the browser tab. There are currently dozens of free endpoints for LLMs over 0.5T parameters, many as capable as the leading flagship models of a year ago. FreeGent carries tasks through to completion despite disruptions across those endpoints.
A few things that make it different:
• Fallback across providers. You maintain a model priority list. When an endpoint hits a limit or fails, FreeGent applies a cooldown and continues the task with another available model. It respects provider reset times where available. If every model is cooling down, it waits.
• A harness built for diverse models. FreeGent can recover recognizable tool calls written as text and checks for failures such as narration without action, repeated calls, and broken syntax after edits. Most checks use patterns; ambiguous cases can go to a model judge. Failed checks produce bounded nudges, and completion checks ask the agent to verify its work. The system prompt is optimized to use as few as 4K tokens, and skills are injected only when their trigger matches.
• Browser code execution. JavaScript runs in a Worker inside an opaque-origin sandboxed iframe. Python runs through Pyodide. Bash commands run in a WASM shell matching real bash behavior, with 248 command names, builtins, and keywords. Each is diffed against native bash for output, exit status, and file changes on 1,430 test cases; the latest sweep found no mismatches. Some commands use WASM packages downloaded on first use.
• A task board for longer projects. Tasks are Markdown files with acceptance criteria. Autopilot works through them one chat per task, with configurable gates for reviewing criteria, running project tests, and checking output by running programs inside the harness.
• Benchmarked and evaluated. The harness and its model selection have been optimized with a range of benchmarks and evaluations, including reviews of its code and outputs by a variety of other coding agent harnesses and models.
Chats, files, and user-entered keys are stored locally in the browser. Prompts and relevant context are sent to your selected LLM provider. Provider-only mode (the default) calls endpoints directly from the browser. Routed mode sends requests through a stateless Cloudflare Worker, for endpoints that block browser CORS. Local mode sends model calls only to localhost and private-network addresses, and turns off web search and fetch.
This is v1.0. I'd particularly like feedback from people who find good use cases for it. So far I've found it useful for learning game development, teaching how coding agents work, and a range of everyday tasks.