# codel

> codel is an open-source agent for ai models and llm tooling. Self-hosted autonomous AI agent that runs tasks in a sandboxed Docker environment. It is available on Web and Self-hosted.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** Web, Self-hosted
- **Website:** https://discord.gg/uMaGSHNjzc
- **Repository:** https://github.com/semanser/codel
- **GitHub stars:** 2,475
- **License:** AGPL-3.0
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm), [coding](https://ai-powered.com/categories/coding-agents)
- **Listing updated:** 2026-12-01

## About

Codel takes a complex task or project and works through it on its own, choosing the next step and carrying it out. It operates inside a sandboxed Docker container with access to a terminal, a built-in browser for pulling up current documentation and tutorials, and a text editor where modified files can be viewed in the browser.

Each command and its output is stored in a PostgreSQL database, so the full history of a run can be reviewed afterwards. The agent also selects a suitable Docker image based on the task at hand. Language models are plugged in through environment variables, supporting OpenAI keys, OpenAI-compatible servers, and locally hosted Ollama models.

Codel suits developers and technically inclined users who want an agent that does hands-on work on their own machine without sending code execution outside their infrastructure.

## Features

- **Sandboxed execution:** All actions run inside a Docker container, keeping the agent's commands isolated from the host.
- **Autonomous step planning:** The agent determines the next step toward a goal and performs it without manual prompting.
- **Built-in web browser:** It fetches up-to-date tutorials and documentation from the web when it needs them.
- **In-browser file editor:** Files the agent modifies can be viewed directly in the web interface.
- **Persistent command history:** Commands and outputs are saved to PostgreSQL for later review.
- **Automatic image selection:** The Docker image used for a task is chosen based on what the task requires.
- **Flexible model backends:** Works with OpenAI, OpenAI-compatible servers, and local Ollama models.

## Good for

- Delegating multi-step coding or scripting projects to an agent running on local infrastructure
- Setting up and testing software environments inside isolated containers
- Having an agent research documentation online and apply it to a build task
- Reviewing a complete log of an agent's commands and outputs after a run

## FAQ

### Where does Codel run?

It is self-hosted and runs as a Docker image, which you start with a single docker run command and then open at localhost:3000.

### Which language models can codel use?

It supports OpenAI models, OpenAI-compatible servers, and locally hosted Ollama models, configured through environment variables.

### Is the code execution sandboxed?

Yes, everything runs inside a sandboxed Docker environment.

### Where is the session history stored?

All commands and their outputs are saved in a PostgreSQL database.

### Is codel free?

Yes. codel is open source, so you can use and self-host it for free.

### What are the best alternatives to codel?

The closest alternatives to codel are nanocoder, crewly, devika, OpenHands and CoderBaba.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [nanocoder](https://ai-powered.com/agents/nanocoder): nanocoder is an open-source agent for ai models and llm tooling.
- [crewly](https://ai-powered.com/agents/crewly): crewly is an open-source agent for ai models and llm tooling.
- [devika](https://ai-powered.com/agents/devika): devika is an open-source agent for coding.
- [OpenHands](https://ai-powered.com/agents/openhands): OpenHands is a freemium open-source agent for ai models and llm tooling.
- [CoderBaba](https://ai-powered.com/agents/coderbaba): CoderBaba is a free open-source agent for coding.
- [AlysisCode](https://ai-powered.com/agents/alysiscode): AlysisCode is a freemium open-source agent for files and documents.
- [agenc-core](https://ai-powered.com/agents/agenc-core): agenc-core is an open-source agent for coding.
- [Harny](https://ai-powered.com/agents/harny-2): Harny is an open-source agent for coding.

---
Source: https://ai-powered.com/agents/codel
