thelastapi
Get started free

Form a US LLC or C-Corp from your terminal: costs and steps

You can form a US LLC or C-Corp directly from your terminal or API using thelastapi for state fees plus a flat $149 service fee.

On this page 6 sections

You can form a US LLC online directly from your terminal or code with thelastapi, which handles state filings, registered agent service, and your EIN. The total cost is your chosen state's statutory fee plus a flat $149 service fee, with the registered agent included at no extra charge. You can draft and simulate the entire filing process in development for free before submitting real documents.

thelastapi provides one API and CLI for hosting, database, email, domains, and legal company formation. Because legal setup is tied directly to your development workflow, you can move from a code repository to an incorporated entity with a federal employer identification number (EIN) without leaving your terminal. thelastapi files on your instructions and is not a law firm, so it provides no legal or tax advice; you choose the state and the entity structure.

What it costs to form an LLC or C-Corp

When you form a company, you pay the exact statutory fee charged by your chosen state plus thelastapi's service fee. All quotes are calculated live in cents from the company catalog API.

ItemCostDetails
State filing feeVaries by stateThe exact state fee (for example, Delaware LLC is $110.00; Wyoming LLC is $100.00)
thelastapi service fee$149.00 (14900 cents)Covers preparation, state filing management, and document storage
Registered agent$0.00Included with your formation at no extra fee
Expedited EIN$0.00 (0 cents today)Available when no founder holds a US Social Security Number

To review the exact fees across all 50 states and the District of Columbia, query the catalog:

Terminal
curl "https://thelastapi.dev/v1/company/catalog?env=development" \
  -H "Authorization: Bearer $VIBIZ_API_KEY"

The response includes each state's fee breakdown for llc and c_corp, along with acceptable industry categories. For a deeper breakdown of jurisdiction differences, read our guide on what it costs to form a US company. If you are uncertain about structure, see LLC vs C-Corp for a SaaS.

What information you need to prepare

Before creating a draft, collect the required entity and founder details. thelastapi enforces structure rules on submission so you do not submit incomplete filings to the state:

  • Entity type and state: Choose llc or c_corp, and pick any US state or Washington, D.C. (Entities like UK Ltd, Estonia OÜ, and Singapore Pte. Ltd. are listed under coming_soon).
  • Company names: Provide between one and three names in order of preference, up to 120 characters each. Exclude endings like "LLC" or "Inc." as the system formats these for your entity type.
  • Industry and description: Select a valid industry string from the catalog and include a business description of at most 50 characters.
  • Physical address: You may use the included registered agent's address for your business and mailing location, except in Indiana and Illinois, which require your own US address.
  • People: Up to 10 individuals with their first name, last name (max 50 characters each), email, physical address, and phone number.
  • Ownership allocation: For an LLC, individual ownership percentages must sum to exactly 100. For a C-Corp, you must designate at least one president, secretary, treasurer, and director, and specify authorized shares and par value in USD.
  • Responsible party: Exactly one person must be designated as the responsible party for IRS tax documentation.

Drafting and testing in development

You can test your formation workflow completely free in development mode. In development, nothing is sent to a state office or the IRS, and your payment method is never charged.

First, write your configuration to company.json:

JSON
{
  "entity_type": "llc",
  "state": "WY",
  "names": [{ "name": "Acme Bakery" }, { "name": "Acme Breads" }],
  "industry": "Bakeries and Tortilla Manufacturing",
  "description": "Neighborhood bakery and online orders",
  "people": [
    {
      "first_name": "Ana",
      "last_name": "Diaz",
      "email": "ana@example.com",
      "address": {
        "line1": "1 Main St",
        "city": "Austin",
        "state": "TX",
        "postal_code": "78701",
        "country": "USA",
        "phone": "+15125550100"
      },
      "ownership_percent": 100,
      "responsible_party": true
    }
  ]
}

Upload the draft and check its validation status using the CLI:

Terminal
# Push your draft in development
vibiz company draft --file company.json --dev

# Check status, quotes, and validation problems
vibiz company --dev

# Submit your development filing
vibiz company submit --dev

When testing automated workflows, you can trigger simulated state transitions to test webhook handlers or status scripts without waiting on human reviewers:

Terminal
# Simulate state approval
vibiz company simulate formation

# Simulate federal EIN generation
vibiz company simulate ein

Read the full technical specification in the Company formation docs and the Company formation: cost and what is needed guide.

Submitting a live production filing

A production submission constitutes a real legal filing. Because legal responsibility rests with company founders, thelastapi enforces guardrails around production submissions:

  1. Owner-only submission: AI agents and limited keys can draft in development or production (with sensitive details masked), but an agent attempting to submit a live formation receives an HTTP 403 owner_only error. Live submission must be initiated by an account owner.
  2. Tax ID privacy: Social Security Numbers (SSN) and Individual Taxpayer Identification Numbers (ITIN) can never be accepted through an agent or programmatic API payload. A human owner enters these directly via the web console or an interactive terminal prompt.
  3. Price confirmation: Production submission checks the draft quote against what was reviewed. If the draft or filing fees change, the API rejects the request with a 409 conflict to ensure you are never surprised by updated state fees.

To file the company in production, run:

Terminal
vibiz company submit

The CLI prints the exact total cost (state fee plus the $149 service fee) and prompts you to type the company name to confirm. You can pay using existing account credits or by card through a direct checkout link (POST /v1/projects/:id/company/checkout?env=production). If a filing fails before submission to the state, the entire charge is reversed back to your original payment method.

Once submitted, the lifecycle progresses through distinct states:

draft -> submitted -> filing -> formed (EIN pending) -> completed (EIN issued)

When the state approves the articles of organization or incorporation, the status moves to formed. thelastapi then coordinates federal tax registration. If your responsible party needs to sign tax authorization forms (SS-4 or Form 8821), you can generate a fresh signing URL:

Terminal
vibiz company sign ss4

For more details on IRS processing times and tax ID mechanics, see getting an EIN for your new company.

Connecting a custom domain and company email

Once your company is legally formed, you will want an online presence and business communications under your own brand. thelastapi lets you manage domains and email mailboxes under the same account.

Search and purchase an available domain from your terminal:

Terminal
# Check availability and pricing across endings
vibiz domains search acmebakery

# Buy the domain from your account credits
vibiz domains buy acmebakery.app

Domains bought this way belong to your account and feature automated HTTPS. You can assign the domain directly to your app project without configuring DNS records manually:

Terminal
vibiz domains use acmebakery.app --project shop

To establish professional communications, set up a corporate inbox or email forwarding for your new domain:

Terminal
# Create an active mailbox for founders
vibiz email mailbox add hello@acmebakery.app --name "Ana at Acme"

# Or forward inbound inquiries directly to your primary inbox
vibiz email forward orders@acmebakery.app ana@example.com

All required MX, SPF, DKIM, and DMARC records are configured automatically on your bought domain. Learn more about DNS routing and apex management in our Domains documentation.

You can draft your company filing today by creating an account and testing your configuration in development mode.

Frequently asked questions

Can an AI agent file a company for me automatically?

An agent can read the catalog, create drafts, and run simulated formations in development, but it cannot submit a live production filing or transmit an SSN or ITIN. Live production submission and tax ID entry require human owner confirmation via the CLI or web console.

What happens if my state filing gets rejected?

If a filing cannot be completed or is rejected before state processing, any fees charged are refunded to your account credits or original card payment. The CLI and console will display the exact reason in the actions list so you can update your draft.

Do I need a US address to form an LLC online?

No, thelastapi includes registered agent service in all supported states at no extra fee, which serves as your legal address for state correspondence. However, Indiana and Illinois state laws require you to provide your own physical US business and mailing address.

How are expedited EINs handled for international founders?

If no founder in your company possesses a US Social Security Number, thelastapi provides expedited EIN filing at no extra charge ($0 today) using an ITIN or foreign passport documentation. The responsible party signs Form SS-4 or Form 8821 via a secure link generated in the terminal or console.