Open-source AI agents: criteria for comparing them
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.
Updated · Markdown version
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
- 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.
- 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 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.
- 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 describe a
read-onlysandbox 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.
- 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.
- 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.
- 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 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 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 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 in this catalog
Platform Score is our assessment under a published method. It is not a safety guarantee.
Related guides
Terms this guide uses
This item is a worked example in the AI glossary for:
Sources
- https://opensource.org/license/apache-2-0 (accessed 2026-11-26)
- https://github.com/anthropics/claude-code/blob/main/LICENSE.md (accessed 2026-11-26)
- https://raw.githubusercontent.com/openai/codex/main/LICENSE (accessed 2026-11-26)
- https://github.com/sst/opencode (accessed 2026-11-26)
- https://modelcontextprotocol.io/docs/getting-started/intro (accessed 2026-11-26)
- https://learn.chatgpt.com/docs/sandboxing (accessed 2026-11-26)