FreeGent: Free Agentic AI for Everyone FreeGent launched as a free agentic AI platform that routes requests across multiple model providers, including Gemini, Groq, OpenRouter, NVIDIA, HuggingFace and Vercel AI Gateway, using a priority list in which the first non-rate-limited model is used and the system waits for the shortest cooldown if all models are cooling down. FreeGent runs JavaScript in a browser sandbox with a virtual filesystem shim and Python via Pyodide, and it offers optional API keys that upgrade GitHub search from 60 to 5,000 requests per hour and Stack Overflow search from 300 to 10,000 per day. The platform also lets users deploy a Cloudflare Worker to their own account to proxy provider calls when hosting FreeGent on their own domain. FreeGent Models tried in order. First non-rate-limited model is used. If all are cooling down, waits for the shortest cooldown. Model used for worker subagent calls. "Default" follows the priority list rotation. "Priority model" always forces the 1 model in the list. Model used for background tasks: chat title generation, prompt suggestions, etc. "Default" uses the first available model from the priority list. "None" disables all utility LLM calls. Override LLM sampling parameters. Empty = provider default. | Temperature | | | Top P | | | Top K | | | Min P | | | Presence penalty | | | Repetition penalty | | Applied as defaults to custom endpoints vLLM / Ollama / LM Studio . Other providers use their own defaults. Set a value to override; leave blank for provider default. | Gemini Key | | Get key ↗ https://aistudio.google.com/app/apikey | | Groq Key | | Get key ↗ https://console.groq.com/keys | | OpenRouter Key | | Get key ↗ https://openrouter.ai/keys | | NVIDIA Key | | Get key ↗ https://build.nvidia.com/ | | TokenHarbor Key | | Get key ↗ https://tokenharbor.ai | | Kilo Key | | Get key ↗ https://kilo.ai | | Vercel AI Gateway Key | | Get key ↗ https://vercel.com/ai-gateway | | MoonMath Key | | Get key ↗ https://zro.moonmath.ai/api-keys | | Requesty Key | | Get key ↗ https://app.requesty.ai/api-keys | | Nous Portal Key | | Get key ↗ https://portal.nousresearch.com/ | | HuggingFace Key | | Get key ↗ https://huggingface.co/settings/tokens | | Developer key | | | HuggingFace key enables FLUX / SDXL via HF Inference as a fallback for generate image Pollinations works without a key . Env var: HF API KEY . Developer key: unlocks the Worker's shared provider keys. When filled, each finished or failed Task chat and every console error/warning is also sent to the Worker's logs, tagged with this session's ID. When a message includes multimedia, requests are routed to these models. "Auto" uses the first capable model from the priority list. All available models. Use ✕ to remove a model from the catalog. Snapshot all settings except API keys as a named profile. Direct browser call — no proxy needed. Sent as X-Brave-Key header. Upgrades GitHub search from 60/hr to 5,000/hr. Upgrades Stack Overflow search from 300/day to 10,000/day. Where FreeGent may send requests. The level applies at once and is saved in this browser only profiles do not carry it . Optional, Routed level only. freegent.ai and the local dev server already proxy provider calls, so leave this empty unless you host FreeGent on your own domain or fork the built-in Worker refuses other origins . Then deploy cf-worker/ to your own Cloudflare account free tier and paste the URL — see Hosting your own site and Worker https://freegent.ai/docs/local/webui hosting-your-own-site-and-worker . Besides the model provider you chose. The location lookup is off at the Provider-only and Local levels, and the page-view counter at Local. Always active — no configuration needed. execute code language="javascript" runs in a browser sandbox with a virtual filesystem shim fs , path modules . Files written via fs.writeFileSync sync back to the workspace automatically. Limitations: no npm packages, no DOM or canvas. fetch reaches public URLs directly when the site allows cross-origin requests, otherwise as a plain GET through the same proxy as fetch url . For canvas/DOM work the AI can generate a self-contained HTML file instead. Runs Python in the browser via Pyodide. Workspace files are pre-loaded at their normal paths; writes sync back automatically. Use micropip.install for pure-Python packages. Controls bash execution only. JavaScript uses the browser sandbox above; Python uses Pyodide. Exposes the run git tool and injects git instructions when messages mention git, commit, push, or pull. Requires the Local code execution sandbox dev server . Disabled by default. Exposes ast query path, query for precise symbol navigation with exact line numbers — find definitions, call sites, imports, exports, and references without grep. Supports: "functions", "classes", "imports", "exports", "symbols", "calls:NAME", "references:NAME", "symbol at:LINE". Works in all environments; available to all agent roles when enabled. Disabled by default. Cap tool results stored in history to avoid context bloat. When a read file result in the main agent context exceeds this length, it is replaced with a structural index of definitions with line numbers plus as many full function bodies as fit. Other tools are passed through as-is. 0 disables. Default: 100000. Compact history before hitting the hard context limit. | % of window | | | Token count | | Nudge the agent to prefer execute code scripts over chained tool calls. One sentence of intent between tool calls; telegraphic task strings for workers; workers respond in compressed style. Reduces history growth without affecting output quality. Base cooldown duration per endpoint after a 429 rate-limit response. Doubles on each consecutive hit exponential backoff , capped at 10 minutes. Give workers scoped context and minimal tool subsets instead of the full system prompt. Workers with role "director" fork the main agent: same system prompt, tools and conversation so far, plus their subtask prefix-cached . Coder and researcher workers always get only their task. When off, director workers also get only their task. On by default. When total worker text output exceeds 2K chars, synthesise all outputs into one compact summary before returning to the main loop. Automatically uses the first model for planning workers; later models in the priority list for execution workers. Never sends two requests to the same model endpoint at once; a second one waits for the first to finish. Parallel workers each start on a different model, taking the highest one in the priority list that is free. On by default. Each model in your list is used for N consecutive steps before rotating to the next. A new turn always starts from the first model. Spreads load to stay within per-model TPM limits. Hierarchical delegation depth. At depth 1, coder workers can spawn their own parallel sub-workers for independent sub-tasks. Sub-workers cannot spawn further. Depth 0 disables the feature entirely. Thinking budget applied to worker agents. High by default — workers often tackle harder sub-problems than the main loop. Pass preserve thinking: true to the vLLM chat template so the model's reasoning from each step is re-inserted as a