# Legalcode
> Your agent already knows how to reason. We provide the law. Legalcode connects primary legal sources and legal skills to the AI tools your team already uses.

THE LEGAL DATA & SKILLS LAYER FOR AI AGENTS

Your agent already knows how to reason. We provide the law.

Your agent already knows how to reason. We provide the law. Legalcode connects primary legal sources and legal skills to the AI tools your team already uses.

## Features

- **Primary Sources** -- Statutes, case law, and regulatory guidance across 24 jurisdictions, updated daily from official pipelines.
- **Legal Skills** -- 318+ custom-built instruction sets that teach your AI agent how a senior lawyer approaches specific legal tasks.
- **Zero Data Retention** -- Your documents and queries are never stored, logged, or used for training. Privacy by architecture.
- **Any MCP Agent** -- Works with Claude, ChatGPT, Codex, Cursor, Copilot, and any MCP-compatible client.

## Quickstart

### TUI

`npx legalcode init`

1. Run the command in your terminal.
2. Pick your target client in the interactive selector.
3. Apply the generated MCP configuration and complete auth in browser when prompted.

### ChatGPT

`npx legalcode init`

1. Run the command in your terminal.
2. Select ChatGPT when prompted.
3. Paste the generated MCP endpoint into your ChatGPT connector config.

### Claude

`npx legalcode init --client claude`

1. Run the command and select Claude.
2. Sign in to legalcode.md when the browser opens.
3. Confirm the remote server URL and scopes in Claude.

### Claude Code

`npx legalcode init --client claude-code`

1. Run the command and select Claude Code.
2. Open `/mcp` in Claude Code and add the generated remote URL.
3. Finish OAuth in your browser and verify tool access.

### Codex

`npx legalcode init --client codex`

1. Run the command and pick Codex.
2. Apply the generated MCP configuration in your Codex environment.
3. Run a sample law lookup to confirm connectivity.


## Plans

### Free
$0 / month

- 100 searches/day
- 10 skill calls/day
- 5 jurisdictions
- Core legal sources
- Community support

### Pro
$29 / month, billed annually - or $39/month

- Unlimited searches
- Unlimited skill calls
- All jurisdictions
- Priority support
- Team plans available

## Links

- [How It Works](https://legalcode.md/how-it-works.md)
- [Documentation](https://legalcode.md/docs.md)
- [Skills Directory](https://legalcode.md/skills.md)
- [Jurisdiction Coverage](https://legalcode.md/jurisdictions.md)
- [Use Cases](https://legalcode.md/use-cases.md)
- [Compare](https://legalcode.md/compare.md)
- [Glossary](https://legalcode.md/glossary.md)
- [Integrations](https://legalcode.md/integrations.md)

---
*Legalcode -- legalcode.md*
