# How to Vibe Code Your Own Clerky (and Stop Paying for It)

> Get startup legal paperwork done safely and easily.

- Site: https://clerky.com
- Category: Legal Technology / SaaS
- Platforms: Web app
- Verdict: **Solid side project** (65/100 vibecodeable)
- Estimated effort: 3-4 weeks of focused development

## Verdict

Build a personal subset for document generation and workflow tracking, but keep paying for actual incorporation and legal filings.

AI coding agents will generate document templates and relational database models with ease. However, building a legal tech platform carries extreme liability risks: a subtle bug in your variable substitution or corporate state machine logic could invalidate a company's capitalization table or 83(b) election during an acquisition or financing round. Use this clone strictly for learning or personal template management, and rely on established providers for real corporate actions.

### What you can't replicate

- Official partnerships and deep integration with elite Silicon Valley startup law firms
- Bonded legal document assistant registrations and state filing clearance credentials
- The massive institutional trust, brand equity, and legal quality assurance backing 20,000+ real startups

## What it does

Software-guided document generation and workflow orchestration for startup formation, fundraising, hiring, commercial agreements, and corporate maintenance.

### Core features

- Document generation engine merging user inputs into attorney-grade legal templates (Markdown/PDF)
- Multi-step corporate state machine (e.g., prohibiting stock issuance before incorporation and initial board consent)
- Co-founder team collaboration and task delegation dashboard
- External attorney review and observer access controls
- Signature escrow workflow holding documents until funds clear
- Automated compliance tracking (83(b) election reminders, annual report dates)

## The business

### Pricing

- Company Lifetime Package: $819 one-time
- Pay-Per-Use / Modular: $9 to $427

### Funding

$120K raised.
- Seed (2011)
Investors: Y Combinator

Founded 2011.
Team size: 15-30.

## The hard parts

- Translating complex corporate statutory requirements into bulletproof legal document logic without edge-case drafting bugs
- Orchestrating multi-party sign-off state machines across founders, investors, and external counsel
- Managing strict legal liability and accuracy expectations (bugs in capitalization or 83(b) filings ruin startup due diligence)

## How to vibe code Clerky

### Prerequisites

- Node.js (free): Required runtime for executing the Next.js framework and building the full-stack web application.
- GitHub (free): Source control and repository hosting required for deployment pipelines.

### Recommended AI tools

- Claude Code: Best-in-class terminal coding agent for scaffolding multi-file SaaS architectures, complex database schemas, and document generation pipelines.
- Cursor: AI-native code editor ideal for iterative UI polish on legal document preview screens and form workflows.

### Stack

- Frontend: Next.js with Tailwind CSS and shadcn/ui
- Backend: Next.js Server Actions and API Routes
- Database: Neon (Serverless Postgres)
- Auth: better-auth
- Payments: Stripe
- Other: React Email for notification templates, PDF generation library (e.g., pdfmake or React-PDF)

### Hosting

- Vercel (Hosting the Next.js frontend, API endpoints, and serverless document generation functions): $0-20/mo
- Neon (Serverless Postgres database storing company profiles, capitalization data, and document state machines): $0/mo

### Build guide

1. **Project Scaffolding and Authentication Setup** — Initialize the Next.js project with Tailwind CSS, configure shadcn/ui components, and set up better-auth with Neon Postgres for user accounts and team access.

```
Create a new Next.js project with TypeScript and Tailwind CSS. Integrate better-auth configured with a Neon Postgres connection using Drizzle ORM or Prisma. Set up the foundational database schema for users, organizations, team memberships (roles: founder, attorney, observer), and company profiles. Build a clean authentication layout with sign-in and registration pages using shadcn/ui components.
```

2. **Company Formation and Onboarding Flow** — Build the multi-step incorporation questionnaire and dashboard overview reflecting company setup status, registered agent details, and state filing prerequisites.

```
Build a multi-step company formation wizard for Delaware C-Corp and Public Benefit Corporation setup. Collect entity name, registered agent election, founder stock allocations, and initial officer appointments. Store these structured inputs in Neon Postgres and render an interactive company legal dashboard showing current setup milestones, document completion status, and automated reminders for annual franchise tax filings.
```

3. **Legal Document Template Engine and Generation** — Implement a dynamic template rendering engine that merges company metadata into markdown and PDF legal forms like bylaws, board consents, and 83(b) elections.

```
Develop a legal document generation module in Next.js. Create structured templates for Action of Incorporator, Bylaws, Initial Board Consent, and 83(b) election forms. The engine must substitute variables from the company profile database into markdown templates, render a live preview with highlighting, and include an action to export finalized documents as formatted PDFs.
```

4. **Fundraising Workflow & Signature Escrow** — Build the fundraising module supporting SAFE and Convertible Note issuance, investor checklists, and signature escrow state management.

```
Implement a fundraising workflow module supporting SAFEs and Convertible Notes with valuation cap and discount variants. Build an investor tracking checklist that monitors whether investors have signed documents and wired funds. Implement a signature escrow state machine: documents remain locked and un-executed until the founder marks the investment funds as received in the company bank account.
```

5. **Hiring and Equity Compensation Pipeline** — Create managed onboarding paperwork for employees and contractors, plus stock option and restricted stock grant generation out of an adopted stock plan.

```
Create a hiring and equity compensation workflow. Allow founders to adopt a stock plan and issue offer letters, PIIAs, consulting agreements, and restricted stock or stock options. Include support for early-exercisable options and automatically attach pre-filled 83(b) election instruction packets for any restricted stock issuances.
```

6. **Attorney Collaboration and Access Control** — Add secondary user roles specifically for external legal counsel to review, comment on, and track client paperwork.

```
Build an attorney collaboration feature enabling founders to invite external counsel as secondary users with read, comment, and review permissions. Create an attorney dashboard view listing client companies, pending document approvals, and an audit trail of modifications made to capitalization or corporate resolutions.
```

### Cost vs paying

**Starting costs (one-time):**

- Domain name registration: $12
- AI coding assistant subscription (Claude Pro / Cursor): $20
- Total: ~$32 one-time

**Ongoing costs (monthly):**

- Vercel Hobby / Neon Free Tier: $0/mo
- Total: $0/mo

- Paying for the SaaS instead: $819 one-time + modular fees
- Build time: 60 hours
- AI tool credits: $20
- Break-even: N/A (Personal learning clone)

## Sources

- [Clerky Official Website](https://www.clerky.com)
- [Tracxn - Clerky Company Profile](https://tracxn.com/d/company/clerky)
- [GetLatka - Clerky Revenue & Growth Metrics](https://getlatka.com/companies/clerky)
- [SparkLaunch - Clerky Pricing & Independent Review Breakdown](https://sparklaun.ch)
- [Y Combinator - Clerky Directory Profile](https://www.ycombinator.com/companies/clerky)