# Legal AI for Codex
> Source: https://legalcode.md/integrations/codex | [HTML version](https://legalcode.md/integrations/codex)

Set up Legalcode for OpenAI Codex MCP workflows. Automate legal research and document analysis at scale.

**For:** Engineering teams building legal automation with Codex

## Setup

`npx legalcode init --client codex`

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

## Capabilities

- Search law and case law across 24 jurisdictions
- Run 318+ legal skills programmatically
- Batch legal research and analysis
- Access regulatory guidance
- Zero data retention

## Security

- Your documents never leave your machine
- No query logging
- OAuth 2.0 authentication
- TLS 1.3 encryption

## FAQ

### Can Codex run legal skills automatically?

Yes. Legalcode skills are instruction sets that any MCP-compatible agent can follow. Codex can execute them as part of automated workflows.

### What's the rate limit?

Free tier includes standard throughput. Pro at $39/month ($29 billed annually) provides higher throughput and concurrency for production workloads.

### How is data updated?

Sources are updated daily from primary legal databases across 24 jurisdictions.

---
*Legalcode -- legalcode.md*
