Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Free-first, local-first AI coding agent for your terminal, powered by SoleilRelay.
Jump to setup instructionsFetched from the repository for this visit.
SoleilCode understands your project, uses tools with explicit approval, and lets SoleilRelay choose the best available free or local model for each task.

One prompt, automatic free/local model routing, real file tools, and browser verification.
Most coding agents are tied to one model or a paid subscription. SoleilCode takes a different approach:
/undo.soleil run --json supports scripts and CI, while
soleil bench measures real coding-agent behavior in isolated projects.SoleilCode is an early-stage project. Review proposed edits and terminal commands before approving them, especially in important repositories.
| Area | What is included |
|---|---|
| Terminal experience | Full-screen green interface, persistent cat header, live model and tool activity |
| Project tools | List/read/search files, write/replace, commands, Git diff, real browser verification |
| Model routing | Groq, Gemini, OpenRouter, Ollama, and custom OpenAI-compatible endpoints |
| Cost controls | Only free and local model definitions are eligible |
| Privacy modes | auto, free, local, and private |
| Token center | Hidden token entry, multiple accounts, fingerprints, listing, and removal |
| Safety | Workspace boundary, secret-file blocking, explicit write/command approval |
| Languages | English, Turkish, Spanish, French, German, Italian, Portuguese, Russian, Japanese, Korean |
| Automation | Headless JSON runs, built-in smoke/core benchmark suites, checkpoints and undo |
For project tasks, SoleilCode behaves as an execution agent:
write_file or replace_in_file captures the previous file state.When a standalone app is requested from a general workspace, the agent is instructed
to create a descriptive subdirectory such as snake-game/index.html. When the
current directory is already dedicated to the app, it writes directly there.
npm install -g soleilcode
soleil
Clone the repository, open the folder, and run:
npm install
npm run build
npm link
Windows users can alternatively run install-windows.cmd.
Then open any project directory and start SoleilCode:
soleil
Check discovered models:
soleil doctor
Open the guided free-model and token center:
soleil setup
Work in a specific directory:
soleil --cwd ./my-app
Run one task without the interactive interface:
soleil run "fix the failing login test" --cwd ./my-app --yes --json
Run the fast one-task benchmark or the three-task core suite:
soleil bench --suite smoke
soleil bench --suite core --runs 3 --json
Benchmarks use the configured free/local routes and therefore consume their quota. Each case runs in a new temporary project that is removed after verification. See the benchmark methodology and latest verified snapshot.
soleil run uses the same routing, tools, safety boundaries, checkpoints, and agent
loop as the interactive interface. JSON output includes the final answer, model
attempts, token usage when reported by the provider, tool results, protocol repair
count, timing, and the generated checkpoint.
soleil run "update the README" --yes --json
soleil run --prompt-file task.txt --cwd ./my-app --yes --json
Without --yes, headless writes and commands are denied because no interactive
approval prompt is available. Use automatic approval only in controlled workspaces.
The browser_test tool starts an ephemeral local server, launches an installed
Microsoft Edge, Google Chrome, or Chromium executable, performs requested keyboard
interactions, records page and console errors, and saves a screenshot under
.soleil/artifacts/.
External network requests and service workers are blocked during verification.
Secret paths such as .env, .git, .soleil, and private-key files are never
served. Set SOLEIL_BROWSER_PATH when the browser executable is installed in a
non-standard location.
Before SoleilCode overwrites or replaces a file, it stores that file's previous
state under .soleil/checkpoints/. In the interactive interface:
/checkpoints
/undo
Undo restores edited files and removes files that the agent created in the latest checkpoint. Commands can modify files outside SoleilCode's file tools, so command side effects are intentionally not claimed as reversible.
SoleilCode ships with ten selectable interface languages:
| Code | Language | Code | Language |
|---|---|---|---|
en | English | it | Italiano |
tr | Türkçe | pt | Português |
es | Español | ru | Русский |
fr | Français | ja | 日本語 |
de | Deutsch | ko | 한국어 |
Use the visual picker:
soleil language
Or choose a language for one launch:
soleil --language es
Inside the interactive agent:
/language
/language ja
Selections made with the picker or /language CODE are stored in
%USERPROFILE%\.soleilcode\config.json.
The built-in setup center explains how to connect these routes:
| Provider | Route | Best fit |
|---|---|---|
| Ollama | Models installed on your machine | Fully local and private work |
| Groq | Free-plan coding and general models | Fast edits, tests, and debugging |
| Google Gemini | Free-tier Flash models | Exploration and long-context tasks |
| OpenRouter | openrouter/free | Automatic selection among available free models |
| Custom endpoint | OpenAI-compatible server | Self-hosted or community endpoints |
Free quotas and model availability are controlled by each provider and can change. SoleilCode never intentionally upgrades to a paid route, but it cannot determine whether billing is enabled on an external provider account. For strict zero-cost use, disable billing at the provider or use Ollama.
SoleilCode discovers installed models automatically while Ollama is running. To force a specific model:
set OLLAMA_MODEL=qwen2.5-coder:7b
soleil --mode local
set GROQ_API_KEY=your_token
soleil
Optionally set GROQ_MODEL to force one model.
set GEMINI_API_KEY=your_token
set GEMINI_MODEL=your_free_model
soleil
set OPENROUTER_API_KEY=your_token
soleil
The default route is openrouter/free. Set OPENROUTER_MODEL to use a specific
eligible free model.
set SOLEIL_BASE_URL=http://127.0.0.1:1234/v1
set SOLEIL_MODEL=local-coder
set SOLEIL_API_KEY=
soleil
See .soleilcode.example.json for project-level configuration. Store only the environment variable name in configuration files, never the secret itself.
Use soleil setup or /setup to:
Tokens are stored in %USERPROFILE%\.soleilcode\credentials.json with
user-profile permissions. Raw token values are never printed in status views or
sent to models as chat content.
The current vault format is not encrypted with the operating-system keychain. Use device encryption and protect your Windows account. Keychain-backed storage is planned.
| Command | Purpose |
|---|---|
/help | Show interactive commands |
/models | Show discovered providers and models |
/status | Show SoleilRelay mode and route health |
/setup | Open the free-model and token center |
/tokens | List token labels and fingerprints |
/free | Show built-in free provider guidance |
/language | Open the ten-language selector |
/language CODE | Change and save the interface language |
/mode auto | Use free cloud and local routes |
/mode free | Use free routes |
/mode local | Use local routes only |
/mode private | Keep source code on the device |
/checkpoints | List recoverable agent file checkpoints |
/undo | Restore the latest checkpoint |
/clear | Clear conversation context |
/exit | Exit SoleilCode |
Use --yes only in controlled environments to bypass file and command approvals.
flowchart TD
U["User task"] --> C["Local task classifier"]
C --> R["SoleilRelay scorer"]
R --> F["Eligible free cloud models"]
R --> L["Local Ollama models"]
R --> O["Custom OpenAI-compatible models"]
F --> A["Soleil coding agent"]
L --> A
O --> A
A --> T["Project tools"]
T --> P{"User approval required?"}
P -->|Yes| U
P -->|Approved| T
For every eligible model, SoleilRelay considers:
If a provider fails, the next free or local candidate is tried. Short provider retry windows can be honored once when doing so is faster than abandoning the route.
.env, .git, private keys, certificates, and common secret files are blocked.private mode only permits local models.Found a vulnerability? Please follow SECURITY.md instead of opening a public issue.
npm install
npm run dev
npm test
npm run check
The test suite covers native and fallback tool loops, headless JSON execution, real-browser interaction, checkpoint restoration, benchmark reporting, safe workspace boundaries, routing, rate-limit retries, credentials, and internationalization.
run --json automation/checkpoints, and /undoIssues and pull requests are welcome. Start with CONTRIBUTING.md and keep changes focused, tested, and free-first.
SoleilCode is available under the MIT License.
GitHub checked 183h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.