Overview
CodeFlux is a local agent tool. It runs as a desktop application on your computer, works directly inside your project folders, and uses a large language model to understand your request, plan the work, edit files, run commands and check the results.
The model is entirely your choice. CodeFlux can use a model deployed on your own machine or network, or the API of a hosted model vendor. It is already adapted to the major vendors in China and abroad. To use one, you only fill in the vendor's address, a model ID and your key, and select the protocol format the vendor speaks.
Key concepts
| Term | Meaning |
|---|---|
| Provider | A model source: a hosted vendor (for example DeepSeek or OpenAI) or a local runtime (for example Ollama). Each provider has an address, a protocol and usually a key. |
| Model ID | The exact identifier of a model at that provider, such as deepseek-chat. |
| Protocol format | The API dialect used to talk to the provider. Most vendors use an OpenAI-compatible format. |
| Project / workspace | A local folder the agent is allowed to read and modify. |
| Session | One conversation and task thread. You can keep several sessions open in parallel. |
Quick start
Three steps from download to your first task.
- Install CodeFlux
Download the package for your system from the download section and install it. See Installation for platform-specific notes.
- Add a model
Open the model settings, add a provider, choose its protocol, then enter the Base URL, Model ID and API key. For a local model, point the address at your local server instead. Details in Connect a model.
- Open a project and start
Choose a project folder, then describe what you want in plain language, for example: "Add an endpoint to the orders module that exports Excel, with date filtering, and write unit tests."
Not sure which model to start with? Any vendor with an OpenAI-compatible API works well for a first try. See the vendor reference for ready-to-use addresses.
Installation
CodeFlux is available for Windows, macOS and Linux. All packages are published on the GitHub release page.
| Platform | Architecture | Package |
|---|---|---|
| Windows 10 / 11 | x64 | Installer .exe · Portable .zip |
| macOS | Apple Silicon (arm64) | .app.tar |
| Linux | x86_64 | AppImage · .deb · .rpm |
The current version is not yet code-signed, so your operating system may show a warning the first time you open it. The steps below explain how to proceed. Signed packages are planned for later releases.
Windows
- Download
CodeFlux-win-x64.exeand run it. - If Windows shows "Windows protected your PC", click More info, then Run anyway.
- Follow the installer, then start CodeFlux from the Start menu.
Prefer no installation? Download CodeFlux-windows-x64-portable.zip, extract it to any folder and run the application inside.
macOS
- Download
CodeFlux-mac-arm64.app.tarand extract it (double-click it, or run the command below). - Move
CodeFlux.appto yourApplicationsfolder. - Because the app is not signed yet, remove the quarantine flag once, then open it.
tar -xf CodeFlux-mac-arm64.app.tar
xattr -cr CodeFlux.app
Only Apple Silicon (M-series) Macs are supported in this release.
Linux
Choose the package that fits your distribution.
# AppImage (any distribution)
chmod +x CodeFlux-linux-x86_64.AppImage
./CodeFlux-linux-x86_64.AppImage
# Debian / Ubuntu
sudo apt install ./CodeFlux-linux-amd64.deb
# Fedora / RHEL
sudo dnf install ./CodeFlux-linux-x86_64.rpm
If the AppImage does not start on a recent Ubuntu, install FUSE 2 support first: sudo apt install libfuse2 (on Ubuntu 24.04: libfuse2t64).
Verify your download
Every release includes a SHA256SUMS.txt file. Compare the checksum of your download with the matching line in that file.
# Windows (PowerShell)
Get-FileHash .\CodeFlux-win-x64.exe -Algorithm SHA256
# macOS
shasum -a 256 CodeFlux-mac-arm64.app.tar
# Linux
sha256sum -c SHA256SUMS.txt --ignore-missing
Connect a model
CodeFlux does not ship with a model of its own. Instead, you connect the models you want to use. Each connection is a provider made of a protocol, an address, a key and one or more model IDs. You can add as many providers as you like and mix local and remote ones.
Menu names and field labels in the application may differ slightly between versions. The concepts and values below stay the same.
Configuration fields
- Nameoptional
- A label for your own reference, such as "DeepSeek" or "Office GPU server".
- ProtocolAPI format
- The API dialect the provider speaks. See Protocol formats.
- Base URLAPI address
- The provider's API address, as given in its documentation, usually ending in
/v1. Do not append the endpoint path such as/chat/completions. - API keysecret
- The credential issued by the vendor. Local runtimes usually do not check it; if the field cannot be left empty, enter any placeholder such as
local. - Model IDexact name
- The identifier of the model at that provider, copied exactly from the vendor's model list, for example
deepseek-chatorqwen-plus.
Protocol formats
Vendors expose their models through different API formats. CodeFlux supports several, so a model works as long as you select the format its provider uses.
| Format | Typically used by | Example Base URL |
|---|---|---|
| OpenAI-compatible | OpenAI, DeepSeek, Qwen, Kimi, Zhipu GLM, Doubao, Ollama, LM Studio, vLLM, most gateways and relay services | https://api.deepseek.com/v1 |
| Anthropic | Claude, and services that offer an Anthropic-style endpoint | https://api.anthropic.com |
| Google Gemini | Gemini API | https://generativelanguage.googleapis.com |
Rule of thumb: read the vendor's API documentation and pick the format it describes. When a vendor offers several, the OpenAI-compatible one is the most widely supported and a safe default.
Remote vendor APIs
- Get your credentials
Create an API key in the vendor's console. Make sure the account has quota or balance, and that the model you want is enabled.
- Add the provider
In CodeFlux, add a provider, pick the protocol, then paste the Base URL and API key.
- Add the model ID
Enter the exact Model ID. A provider can hold several models, for example a fast one for simple edits and a stronger one for planning.
- Test it
Start a session with the new model and send a short message. If it answers, the setup is complete.
Your API key is a password. Never share it or commit it to a repository. Prefer keys with limited permissions, and set a spending limit in the vendor's console.
Local models
To keep everything on your own hardware, run a model with a local runtime and point CodeFlux at it. Any runtime that provides an OpenAI-compatible API works, including Ollama, LM Studio and vLLM.
Example with Ollama:
# 1. Download a model
ollama pull qwen2.5-coder:7b
# 2. Check the server is running and the model is listed
curl http://localhost:11434/v1/models
Then add a provider in CodeFlux with the following values:
- Protocol
- OpenAI-compatible
- Base URL
http://localhost:11434/v1- API key
- Any placeholder, for example
ollama - Model ID
qwen2.5-coder:7b(as shown byollama list)
A model served on another machine in your network works the same way: replace localhost with that machine's address and make sure its server listens on the network interface and its firewall allows the port.
Choosing a local model. The agent relies on tool calling and long context. Pick a model that supports function / tool calling and offers a context window of at least 32K tokens. Very small models can chat well but may struggle with multi-step tasks.
Vendor reference
Common addresses to get you started. Model IDs change often, so always check the vendor's current model list.
| Vendor | Protocol | Base URL | Example Model ID |
|---|---|---|---|
| OpenAI | OpenAI-compatible | https://api.openai.com/v1 | gpt-4o |
| Anthropic (Claude) | Anthropic | https://api.anthropic.com | claude-sonnet-4-5 |
| Google Gemini | Google Gemini | https://generativelanguage.googleapis.com | gemini-2.5-pro |
| DeepSeek | OpenAI-compatible | https://api.deepseek.com/v1 | deepseek-chat |
| Qwen (Alibaba Cloud) | OpenAI-compatible | https://dashscope.aliyuncs.com/compatible-mode/v1 | qwen-plus |
| Kimi (Moonshot) | OpenAI-compatible | https://api.moonshot.cn/v1 | moonshot-v1-32k |
| Zhipu GLM | OpenAI-compatible | https://open.bigmodel.cn/api/paas/v4 | glm-4-plus |
| Doubao (Volcano Engine) | OpenAI-compatible | https://ark.cn-beijing.volces.com/api/v3 | ep-… (your endpoint ID) |
| Ollama | OpenAI-compatible | http://localhost:11434/v1 | as listed by ollama list |
| LM Studio | OpenAI-compatible | http://localhost:1234/v1 | shown in LM Studio |
| vLLM | OpenAI-compatible | http://localhost:8000/v1 | the --model name you served |
Vendors not listed here, including gateways, aggregators and your company's internal model service, work the same way: use the address and protocol from their documentation.
Managing and switching
- Add several providers and models, then choose which one each session uses.
- Switch models at any time without leaving your project. Use a strong model for planning and a fast, inexpensive one for routine edits.
- To rotate a key, edit the provider and paste the new one. Existing sessions pick it up automatically.
- Remove providers you no longer use to keep the list tidy.
Everyday use
Projects and sessions
Open a project by choosing its folder. The agent reads and edits files inside that folder only, so it always works against your real code. Each task lives in its own session, shown as a tab. You can run several sessions in parallel and switch between them without them interfering.
Giving tasks
Describe the outcome you want, not the keystrokes. Good requests state the goal, the scope and how you will judge success.
- "Fix the login timeout bug. Start from the auth middleware and add a regression test."
- "Upgrade the dependencies in this project and make sure the build still passes."
For larger work, CodeFlux first analyzes the codebase and drafts a plan you can edit. It starts only after you confirm. It then edits files, runs commands and tests, and repairs its own errors along the way.
Attach screenshots, documents or error messages when they help. The more concrete the context, the fewer rounds you need.
Commands and references
| Input | What it does |
|---|---|
| / | Opens the command list so you can run built-in actions without leaving the input box. |
| @ | Adds a file or folder from the project to the conversation as precise context. |
Reviewing changes
Every change is shown as a diff, so you can read exactly what was modified, line by line. You can then accept it, roll it back, or commit it to Git. Because each step can be undone, you stay in control even when the agent makes many edits.
Use Git in your project. A clean working tree before a big task makes it trivial to compare, review and revert.
Advanced
MCP
The Model Context Protocol (MCP) lets CodeFlux use external tools and data sources, such as GitHub, databases, Figma, a browser or Docker. Each integration is an MCP server that you add once and the agent can then call when relevant.
- Find the MCP server you want and note its launch command or its URL.
- Add it in CodeFlux's MCP settings and supply its command, arguments and any environment variables (such as an access token).
- Confirm the server's tools appear, then ask the agent to use them.
Most servers document a configuration like this one:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<your-token>" }
}
}
}
MCP servers can read data and take actions on your behalf. Install only servers you trust, and grant tokens the minimum permissions they need.
Multi-agent mode
For complex tasks, CodeFlux can split the work between specialised roles that advance in parallel: a planner that drafts the approach, a coder that implements it, a tester that writes and runs tests, and a reviewer that checks the result. Each role can use whichever model suits it best, so you can combine a strong planning model with a fast coding model.
Privacy and security
CodeFlux is designed so that you decide where your data goes.
| Data | Where it lives |
|---|---|
| Project files, index, session history | On your computer. Nothing is uploaded proactively. |
| Provider settings and API keys | On your computer. |
| Request context (prompts and relevant code) | Sent only to the model provider you selected, and only when you use it. |
| Requests to a local model | Stay on your machine or inside your network. You can work fully offline. |
Recommendations
- For sensitive code, use a local model or a model service hosted inside your organization.
- Review the data policy of any hosted vendor before sending proprietary code.
- Use dedicated, limited keys and rotate them regularly.
- Keep your project under version control so every change can be reviewed and reverted.
Troubleshooting
Model connection
| Symptom | Likely cause | What to do |
|---|---|---|
401 / 403 | Wrong, expired or unauthorised key; wrong region or account. | Re-copy the key without spaces or quotes. Check that it belongs to this vendor and that the model is enabled for your account. |
404 / "model not found" | Wrong Base URL path or Model ID. | Use the address from the vendor's docs, usually ending in /v1 and without /chat/completions. Copy the Model ID exactly. |
429 | Rate limit or exhausted quota. | Wait and retry, check balance and limits in the vendor console, or switch to another model. |
| Timeout / connection refused | Network, proxy or firewall problem; local server not running. | Open the Base URL in a browser or with curl. For local models, confirm the runtime is running and the port is correct. |
| Format or "unsupported parameter" errors | Protocol format does not match the provider. | Switch the protocol to the one the vendor documents. When unsure, try OpenAI-compatible. |
| The agent answers but never edits files or runs tools | The model lacks tool calling, or its context window is too small. | Choose a model that supports tool / function calling with a context of at least 32K tokens. |
Installation and startup
| Symptom | What to do |
|---|---|
| Windows: "Windows protected your PC" | The build is unsigned. Click More info, then Run anyway. |
| macOS: the app cannot be opened or "is damaged" | Extract it and run xattr -cr CodeFlux.app in Terminal, then open it again. |
| Linux: the AppImage does not start | Make it executable with chmod +x, and install libfuse2 if your distribution requires it. |
| Checksum does not match | Download the file again, preferably over a stable connection, and compare with SHA256SUMS.txt from the same release. |
Getting help
Still stuck? When you contact us, include your CodeFlux version, your operating system, the provider and protocol you are using, and the exact error message. Never include your API key.
- Technical support: [email protected]
- Pricing, Team and Enterprise plans: [email protected]
- Releases and source: GitHub