You don't need a bar membership to spot concerning terms in a contract. This is a private, self-hosted AI assistant for legal text review, built as a Cocapn Fleet vessel. It runs exclusively on your own infrastructure.
Live Reference Instance: lawlog-ai.casey-digennaro.workers.dev
You've likely stared at a rental agreement, freelance contract, or terms of service and wondered if you're missing something. This tool lets you get a second opinion without routing your private documents through a third-party service.
- Private Analysis: All requests go directly from your deployed worker to your chosen LLM provider's API. Your data never passes through any other server.
- Provider Flexibility: Configure it to use DeepSeek, Moonshot, DeepInfra, SiliconFlow, or other compatible LLM APIs.
- Simple Deployment: Deploy in under 2 minutes to Cloudflare Workers. No servers, databases, or complex build steps.
- Optional Memory: Enable private conversation history stored only in your Cloudflare KV namespace.
- API Endpoint: Includes a standard
/api/chatendpoint for programmatic use, with a health check at/.
- Fork-First: This is not a SaaS. You fork the repository, deploy it yourself, and maintain full control. There is no central platform, account, or rate limits we impose.
- Zero Dependencies: The entire application is a single, readable JavaScript file. No
npm installor external packages. - No Upsells: It performs the specific task of contract review. No email collection, advertising, or feature upselling.
- Fork this repository.
- Deploy to Cloudflare Workers using
npx wrangler deploy. - Add your LLM API key as a Cloudflare Secret (
LLM_API_KEY).
After deployment, visit your worker's /setup page for detailed configuration instructions.
This tool uses general-purpose language models. For complex, high-stakes contracts (e.g., corporate merger agreements), its analysis may lack the nuanced context a specialized legal professional provides and may miss critical jurisdiction-specific clauses. Always verify its suggestions manually.
This is a fork-first repository. You are encouraged to clone and modify it for your specific needs. Pull requests for clear bug fixes and modest, scope-contained improvements are welcome.
MIT License