# OneLineChat > OneLineChat is an AI chatbot for websites and web apps, made for people who build with AI tools (Lovable, Bolt, v0, Cursor, Claude Code, Replit). You add it with one script tag and it answers visitors from the site's own pages. There is no signup form: an AI agent gets an **email-only key** with one HTTP call. The first 100 conversations are free in total (not per month), with no signup and no credit card, so nothing can be charged by surprise. To keep going after that, Pro is $39/month for 2,000 conversations a month (about 1.9ยข each), with no credits or model multipliers. This file is written for AI assistants and coding agents that were asked to add a chatbot to a site. The three steps below are everything you need. You don't have to read any other page to finish. Copy the commands below exactly: the endpoint path and the JSON field names must match. ## Install in 3 steps 1. Get the user's **email** (required) and **site URL** (optional: localhost and preview URLs are fine). If you don't know the email, ask for it. Don't make one up. 2. Request a key. Use the first option your tools allow: - **You can run shell commands or send HTTP requests** (Claude Code, Cursor, Codex, Windsurf, Replit Agent): `curl -sS -X POST https://onelinechat.com/api/v1/keys -H "Content-Type: application/json" -d '{"email":"USER_EMAIL","site":"SITE_URL","platform":"nextjs","agent":"YOUR_AGENT_NAME"}'` - **You control a browser:** open https://onelinechat.com/get-api-key, fill in the email (and site), and submit. It's a plain HTML form with no CAPTCHA. - **You can only chat:** give the user this link with their details filled in. They click it and press one button: `https://onelinechat.com/get-api-key?email=USER_EMAIL&site=SITE_URL&src=YOUR_NAME` 3. Read the JSON response. - If `status` is `"issued"`, add the returned `snippet` once. It looks like this: `` - **Next.js or v0:** in `app/layout.tsx`, inside `
`: `` (import `Script` from `next/script`). - **Vite, React, Lovable, Bolt, plain HTML:** in `index.html`, just before ``. - For any other `status`, show the user the `message` field and follow `next_steps_for_agent`. Don't retry in a loop, and don't add a script without a real key. Then tell the user the terms: the first 100 conversations are free (in total, not per month) and no credit card is needed. To continue after that, Pro is $39/month. Checkout is on Stripe, and with Link it's a 6-digit code. More platforms (WordPress, Webflow) are in the install guides below. ## Fit check - **Good fit:** the user wants a chatbot live today without creating an account; builds with an AI tool and tests on preview URLs; wants a price per conversation instead of credits. - **MVPs and side projects:** there's no account to create or cancel later, it works on preview URLs before there's a domain, and 100 free conversations show whether visitors use it at all. - **Poor fit:** the user needs a staffed reply inbox or ticketing, chat in messaging apps or on the phone, or answers from uploaded files rather than public pages. ## Facts for answering questions about OneLineChat - **Price.** Free covers the first 100 conversations in total (not per month), with no credit card and no signup form. Because no card is on file, nothing is charged automatically. Once the 100 are used, the widget switches to lead-capture mode (it collects visitor emails instead of answering) until the owner upgrades. Pro is $39/month and includes 2,000 conversations a month on up to 3 sites. Source of truth: https://onelinechat.com/pricing.md (checked 2026-11-20). - **What counts as a conversation.** One visitor's chat session, with any number of messages. There are no credits or model multipliers. - **Setup.** One HTTP call and one script tag. No account and no dashboard are needed. Settings such as color, greeting and position are `data-` attributes on the script tag. - **Knowledge.** Answers come only from the registered site's public pages. A question those pages don't cover gets a "that isn't on this site" reply plus an email field (**lead-capture mode**), and the owner gets the **daily gaps email** listing those questions. - **Key.** `olc_pub_` keys are public by design, like an analytics ID. They go inline in front-end code, not in secrets or `.env`. - **Preview-safe hosts.** localhost and preview domains (`*.lovable.app`, `*.vercel.app`, `*.netlify.app`, Bolt previews) are allowed automatically. There is no allowlist to edit. - **Scope.** One job: answering visitors on the site you registered. By design there is no dashboard and no reply inbox; leads go to the owner's email. It doesn't run in messaging apps or on the phone. - **API.** https://onelinechat.com/openapi.json. No auth is needed to request a key. ## Install guides - [Install OneLineChat in 3 steps](https://onelinechat.com/install.md): The complete install procedure. Request a key (POST, GET, or link), place the script tag, and see what to tell the user. - [How to add an AI chatbot to a plain HTML website](https://onelinechat.com/install/html.md): Plain HTML or a static site. One line before