# Open-source AI agents: criteria for comparing them

> Canonical: https://skillalmanac.com/learn/open-source-ai-agents-what-to-compare | Updated: 2026-11-26 | Index status: index-eligible

How to compare open-source AI agents on license, permissions, tool connections, and maintenance, with a test you can run for each before you install one.

## Facts

- 2026-11-26: Apache License 2.0 is OSI-approved, uses the SPDX identifier Apache-2.0, and requires recipients to get a copy of the license and modified files to carry change notices (https://opensource.org/license/apache-2-0)
- 2026-11-26: Apache License 2.0 provides the work AS IS without warranties unless required by applicable law or agreed to in writing, and says no contributor is liable for damages unless required by applicable law or agreed to in writing (https://opensource.org/license/apache-2-0)
- 2026-11-26: Claude Code's LICENSE.md is an all-rights-reserved notice that refers to Anthropic's Commercial Terms of Service, not an open-source license (https://github.com/anthropics/claude-code/blob/main/LICENSE.md)
- 2026-11-26: The openai/codex repository's LICENSE file is the Apache License, Version 2.0 (https://raw.githubusercontent.com/openai/codex/main/LICENSE)
- 2026-11-26: OpenCode (github.com/sst/opencode, which now serves anomalyco/opencode) is described as an open source AI coding agent under the MIT License, with built-in build (full access) and plan (read-only) agents (https://github.com/sst/opencode)
- 2026-11-26: The Model Context Protocol is an open-source standard for connecting AI applications to external data sources, tools, and workflows (https://modelcontextprotocol.io/docs/getting-started/intro)
- 2026-11-26: OpenAI's sandboxing docs for Codex list a read-only sandbox mode in which the agent can inspect files but cannot edit files or run commands without approval (https://learn.chatgpt.com/docs/sandboxing)

To compare open-source AI agents, check six things: the license, the licenses of the packages the agent installs, the permissions it asks for, how it connects to outside tools, how much of it you can read and change, and how actively it is maintained. Run one test per criterion on a real candidate before you install it, and record the result next to the criterion so the comparison stays concrete.

## Criteria and how to test each

1. **License terms.** "Open source" covers several license families with different obligations. Apache License 2.0, for example, is OSI-approved and allows use, modification, and redistribution, but requires that recipients receive a copy of the license and that, when you redistribute, you mark files you changed and keep the attribution notices from any NOTICE file. **Test:** open the LICENSE file in the repository root and write down the two or three obligations that apply to your use. Claude Code shows why this matters: its repository is public, but its LICENSE.md is an all-rights-reserved notice that points to Anthropic's Commercial Terms of Service, so it is not an open-source license.

2. **Dependency licenses.** The agent's license does not cover the packages it pulls in. **Test:** count the direct and transitive dependencies in the lockfile, then check the license each package declares. The [dependency-license-inventory](/skills/skill-almanac/dependency-license-inventory) skill reads the license each installed package declares in node_modules or site-packages, using lock files only for package names, so you can run the check without sending the project anywhere.

3. **Permissions.** **Test:** OpenCode's README, for example, lists a *build* agent with full access and a *plan* agent that is read-only, so you can start in the read-only mode on a copy. Codex's [sandboxing docs](https://learn.chatgpt.com/docs/sandboxing) describe a `read-only` sandbox mode in which the agent can inspect files but cannot edit files or run commands without approval. Then run the agent on a throwaway copy of a project and list every file path, shell command, and host it touches. If the agent offers an approval step for file writes or shell commands, confirm that it works before you rely on it. If the docs do not describe a setting, record it as unknown rather than assuming it exists.

4. **Tool connections.** An agent that speaks MCP can attach to servers you already operate, which saves you from writing a second integration for each data source. **Test:** check the agent's documentation for MCP support, then connect one server you control and confirm the agent lists its tools.

5. **Inspectability and exit path.** **Test:** confirm the source is in a public repository, that you can build or run it yourself, and that the license lets you fork it if the project stops.

6. **Maintenance signal.** **Test:** check the dates of the latest release and commit, how recently issues were answered, and whether a security contact is published. Re-check them on the day you decide.

## Worked comparison: Codex CLI and OpenCode

The table uses only what each repository states as of 2026-11-26. The OpenCode link below, github.com/sst/opencode, now serves the repository anomalyco/opencode.

| Criterion | openai/codex | OpenCode (anomalyco/opencode) |
|---|---|---|
| License file | Apache License, Version 2.0 | MIT License |
| Read-only mode named in README | Not stated in the README | Yes: a *plan* agent for read-only analysis |
| Install options in README | npm, Homebrew, install script | npm, Homebrew, several package managers |

Decision rule: pick on the criterion your use depends on. Do not choose on permissions from the README row above. It records README wording only, and both candidates document a read-only option: OpenCode's README lists the plan agent, and Codex's [sandboxing docs](https://learn.chatgpt.com/docs/sandboxing) describe a `read-only` sandbox mode. Run the criterion 3 test on each candidate and compare the behaviour you observe with what your use requires. If you need Apache License 2.0 terms, Codex's LICENSE file is the document to read. Confirm each claim in the current docs before you install.

## Pitfalls

- **Treating open source as a safety assurance.** Apache License 2.0 provides the work as is, without warranties, unless applicable law requires otherwise or the parties agree otherwise in writing. Your review still has to cover what the agent does on your machine, so test it on a throwaway copy as in criterion 3. If the agent loads skills, scan each third-party skill folder before install.
- **Relying on a badge or summary line.** A license label on a project page can be incomplete. Read the LICENSE file and any NOTICE file.
- **Checking only the direct dependencies.** Transitive packages carry their own licenses. Inventory the full lockfile, not the list in the README.
- **Comparing feature lists from marketing pages.** Feature claims drift. Use the agent's own docs and changelog, and note the date you read them.
- **Testing on your real repository.** Start on a copy. A copy lowers the risk to your working tree. It does not isolate credentials, network access or other directories on the machine.

## When to use a skill instead

Checking one agent by hand suits a one-off decision; the steps repeat for each candidate. [skill-safety-audit](/skills/skill-almanac/skill-safety-audit) produces a JSON risk table for an agent skill folder, with file and line evidence and a fixed install decision, so each candidate gets the same review. [dependency-license-inventory](/skills/skill-almanac/dependency-license-inventory) covers criterion 2 by listing the licenses that installed dependencies declare, using only local files. Ad-hoc prompting is fine for reading one LICENSE file; use the skills when you are comparing several agents against the same criteria.

## FAQ

**Does an Apache 2.0 license mean an agent is safe to run?**
No. Apache License 2.0 governs your rights to use, change, and share the code, and it provides the work without warranties unless applicable law requires otherwise or the parties agree otherwise in writing. Safety depends on what the agent is allowed to do in your environment, which you test under criterion 3.

**Where is an agent's license if the README does not state it?**
Open the LICENSE file in the repository root. The openai/codex repository's LICENSE file is the Apache License, Version 2.0. Claude Code's LICENSE.md, by contrast, is an all-rights-reserved notice, so a public repository alone does not tell you the terms of use.

**What is the Model Context Protocol, and why does it matter when comparing agents?**
Short for Model Context Protocol, MCP is open source and links AI applications to outside data, tools and workflows. It matters because an agent that supports it can use servers you already run, so the tool-connection criterion depends on it.

## Related skills

- [skill-safety-audit](https://skillalmanac.com/skills/skill-almanac/skill-safety-audit.md): Platform Score 57/100 (provisional)
- [dependency-license-inventory](https://skillalmanac.com/skills/skill-almanac/dependency-license-inventory.md): Platform Score 56/100 (provisional)

## Related guides

- [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations.md)
- [What Is Claude Superpowers and What to Check Before Use](https://skillalmanac.com/learn/what-is-claude-superpowers.md)
- [What Is everything-claude-code (ECC)? Contents and Install](https://skillalmanac.com/learn/what-is-everything-claude-code.md)
- [Autonomous AI Agents: Risks and Guardrails](https://skillalmanac.com/learn/autonomous-ai-agents-risks-and-guardrails.md)
- [Prompt Engineering for Agents vs Chat Models](https://skillalmanac.com/learn/prompt-engineering-guide-for-agents.md)

## Sources

- https://opensource.org/license/apache-2-0
- https://github.com/anthropics/claude-code/blob/main/LICENSE.md
- https://raw.githubusercontent.com/openai/codex/main/LICENSE
- https://github.com/sst/opencode
- https://modelcontextprotocol.io/docs/getting-started/intro
- https://learn.chatgpt.com/docs/sandboxing

Platform Scores report our assessment under a published method. They are not a safety guarantee.
