For developers

One definition.ts. Every surface.

next-vibe is the open-source TypeScript framework behind unbottled.ai. AI chat, accounting, POS, inventory and CRM run on it. One endpoint becomes a web UI, CLI command, MCP tool and AI tool. No glue code.

800+
typed endpoints in the repo
10
surfaces from one definition
8
languages built in
126
chat models, one API key
The framework

Follow one endpoint.

The contact form from this repo, trimmed but real. One definition becomes a web UI, CLI command, MCP tool, native screen, AI tool and cron job.

// src/contact/definition.ts (trimmed)
const { POST } = createEndpoint({
  scopedTranslation,
  method: Methods.POST,
  path: ["contact"],
  aliases: ["contact-form"],
  // AI callers must ask the user first
  requiresConfirmation: true,
  allowedRoles: [UserRole.PUBLIC, UserRole.CUSTOMER, UserRole.ADMIN /* , ... */],
  // title, description, category, icon, tags: required too

  fields: customWidgetObject({
    render: ContactFormWidget, // one widget, every surface
    usage: { request: "data", response: true } as const,
    children: {
      name: requestField(scopedTranslation, {
        schema: z.string().min(2),
        type: WidgetType.FORM_FIELD,
        fieldType: FieldDataType.TEXT,
        label: "form.fields.name.label",
      }),
      message: requestField(scopedTranslation, {
        // real file: superRefine, lets "" through to the repository check
        schema: z.string().min(10),
        type: WidgetType.FORM_FIELD,
        fieldType: FieldDataType.TEXTAREA,
        label: "form.fields.message.label",
      }),
      // email, subject, priority: same pattern
      success: responseField(scopedTranslation, {
        schema: translatedValueSchema,
        type: WidgetType.ALERT,
      }),
    },
  }),
  errorTypes: { /* all 9 EndpointErrorTypes, required */ },
  successTypes: { /* title + description */ },
  examples: { /* typed request + response samples */ },
});
Call it
$ vibe contact-form \
    --name="Ada Lovelace" \
    --email="ada@example.com" \
    --message="Can we self-host this for a team of 40?"

# flags come from the Zod fields
# vibe contact-form --help prints them, with examples
A feature is a folder. Delete it, run vibe gen, and it disappears from every surface at once.
Add yours
mkdir -p src/my-feature
# add definition.ts, repository.ts, route.ts

# register every surface
vibe gen

# 0 errors or not done
vibe check src/my-feature

# live in the CLI
vibe my-feature --help

The contact form becomes

Web UI

The form at the bottom of this page. Fields, validation and the success alert come from the definition.

CLI command

vibe contact-form, one flag per field, help text built in.

MCP tool

Agents reach it over vibe mcp through the execute-tool tool. Input schema straight from Zod.

AI tool

Models can call it. requiresConfirmation makes the user approve first.

Native screen

The Expo app renders the same widget with native inputs. Beta.

Cron job

Any endpoint runs on a schedule. Same handler, no second code path.

Plus 4 more surfaces

REST APIWebSocket eventsAdmin panelEmbeddable widget

In production

unbottled.ai runs on this codebase: web, CLI, MCP, AI tools, cron, realtime, payments.

Beta

React Native screens, instance-to-instance sync and remote skills work, with rough edges.

Expect churn

One team, moving fast. No semver yet, and the docs trail the code. Pin a commit or fork it.

In the repo

Whole products, same pattern.

Accounting, invoicing, CRM and messaging follow the same pattern as the contact form above. Each endpoint is a CLI command, MCP tool and AI tool unless its definition opts out. Open any folder: definition, repository, route.

Same pattern, real commands
vibe payment-invoice-list --help
vibe pos-dashboard
Self-host

Run all of it yourself.

The platform behind unbottled.ai is open source. Clone, install, run. Then the browser takes over. No Docker, no config files.

Terminal
# Get the code
$ git clone https://github.com/techfreaque/next-vibe
# Open the next-vibe folder in your terminal, then install
$ bun i
# Start. Database, migrations and seed data run on their own.
$ vibe dev
Everything else happens in the browser
1
Open localhost:3000Click Log In, top right.
2
Pick the ADMIN accountIn the Dev Quick Login box. The setup wizard opens.
3
Set your admin loginYour email, your password. Security keys are already generated.
4
Choose your AISign in with your unbottled.ai account, or paste your own provider key. Finish. Start chatting.

Embedded Postgres (PGlite) by default. Point DATABASE_URL at your own Postgres when you outgrow it.

MCP and CLI

Your agent already knows your app.

bun i writes the MCP config for Claude Code, Cursor, VS Code, OpenCode and Codex. Open the repo in your agent and the tools are there.

MCP over stdio. No extra server, no port.
Same roles and validation as the web UI. Models reach only what your role allows.
Connect the install to your unbottled.ai account and its agents run on our models.
Every command documents itself: vibe <command> --help.
.mcp.json
{
  "mcpServers": {
    "atlas": {
      "command": "bun",
      "args": [
        "--preload",
        "<repo>/src/vibe/platforms/cli/runtime/env-preload.ts",
        "<repo>/src/vibe/platforms/cli/vibe-runtime.ts",
        "mcp"
      ],
      "env": { "PROJECT_ROOT": "<repo>" }
    }
  }
}

The atlas entry bun i writes, trimmed. The real file also has a hermes server and uses your clone's path.

Quickstart

First response in three steps.

The API speaks OpenAI Chat Completions and Responses, and Anthropic Messages. Your code runs here after three changes: the base URL, the key and a model id from GET /v1/models.

1
Unlock the API and create a key

Any plan from $8 a month unlocks it. Then open API keys, name a key and copy it. You see it once.

2
Point your client at us

OpenAI clients take the first URL. Claude Code and Anthropic SDKs take the second.

OpenAI base URL
https://unbottled.ai/api/en-IN/v1

Any locale works in the path. It only changes the language of error messages.

Anthropic base URL
https://unbottled.ai/api/en-IN

No /v1 at the end: Anthropic clients append /v1/messages themselves.

3
Send a request

Put your key in and run it. kimi-k3.1-pro is one model id. GET /v1/models lists every id your key can call.

curl https://unbottled.ai/api/en-IN/v1/chat/completions \
  -H "Authorization: Bearer sk-unb-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k3.1-pro",
    "messages": [
      { "role": "system", "content": "You answer in one sentence." },
      { "role": "user", "content": "Why is the sky blue?" }
    ]
  }'
Example response
200
{
  "id": "chatcmpl-3f9c1a...",
  "object": "chat.completion",
  "created": 1767225600,
  "model": "kimi-k3.1-pro",
  "choices": [
    {
      "index": 0,
      "message": { "role": "assistant", "content": "Air scatters blue light more than red." },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 31,
    "prompt_tokens_details": {"cached_tokens": 16, "cache_write_tokens": 0},
    "completion_tokens": 9,
    "total_tokens": 40,
    "credits_charged": 0.1
  }
}
Coding agents work out of the box
Tested setups, copy and paste:Codex CLIClaude CodeOpenCodeContinueAiderCline
Pricing

A plan unlocks the API. You pay per call, in credits.

Same rates as the chat app. No API surcharge, no seat fees, one balance.

Unlocks the API
Any plan, from $8 a month
Credits granted by our team, such as tester credits
Never unlocks it
The free tier: monthly allowance, signup and newsletter bonuses, referral earnings. Without a plan or granted credits, every /v1 call answers 402 paid_plan_required.
How a call is billed

Provider cost plus our markup, in credits. GET /v1/models lists each model's credits per million input and output tokens. Every response reports usage.credits_charged; streams do with stream_options.include_usage.

Need more? Subscribers top up with credit packs from $5. Pack credits never expire.

1 credit = 1 US cent
No fixed rate limit (billed per request)
Up to 20 keys per account
Short on credits: 402 before anything runs
Every price comes from the API itself
curl https://unbottled.ai/api/en-IN/v1/models \
  -H "Authorization: Bearer sk-unb-YOUR_KEY"
Example response
200
{
  "object": "list",
  "data": [
    {
      "id": "kimi-k3.1-pro",
      "object": "model",
      "created": 1735689600,
      "owned_by": "moonshot",
      "name": "Kimi K3.1 Pro",
      "context_length": 131072,
      "supports_tools": true,
      "input_modalities": ["text"],
      "output_modalities": ["text"],
      "pricing": {
        "input_credits_per_million_tokens": 31.239000000000004,
        "output_credits_per_million_tokens": 1092.299,
        "cache_read_credits_per_million_tokens": 26,
        "cache_write_credits_per_million_tokens": null,
        "cache_write_1h_credits_per_million_tokens": null
      }
    }
  ]
}
Uncensored models

Two kinds of uncensored. Both on the API.

Most uncensored AI is a mainstream model with the refusals cut or trained out. We run those, and one trained differently from the start. Pick per request with the model id.

Abliterated and fine-tuned

Mainstream models that stop dodging

Refusals cut from the weights or trained out. Same knowledge, straight answers.

Truly uncensored

A model with its own worldview

UncensoredLM v1.2 is trained on books and documents banned from the mainstream internet, resulting in a model with contrary political opinions.

Confirm 18+ once on the API keys page. Until then uncensored models answer 403 uncensored_consent_required, and nothing is charged.

Questions developers ask

Is there a free API tier?

No. The API unlocks with any plan, from $8 a month, or with credits granted by our team. The free chat allowance does not unlock it.

Which SDKs and tools work?

The official OpenAI and Anthropic SDKs, any OpenAI-compatible library, and coding agents like Claude Code, Codex CLI, OpenCode, Aider, Cline and Continue. Change the base URL and the key.

Can I call uncensored models over the API?

Yes. Confirm once on the API keys page that you are 18 or older, then call them like any other model. Abliterated models and UncensoredLM use the same endpoints.

Images, voice, video and music too?

Same key. /v1/images, /v1/audio, /v1/videos and /v1/music follow the OpenAI shapes where one exists. The API reference covers every endpoint.

What are the rate limits?

No fixed rate limit. Usage is billed per request from your credits, and generous abuse protection applies (high burst and concurrent stream guards). Upstream provider 429s pass through with a Retry-After header. Planning very high volume? Use the contact form below.

Is self-hosting free?

Yes. The code is open source: MIT for the app, GPL v3 for the framework. Bring your own provider keys, or connect the install to your unbottled.ai account and pay for what you use.

The endpoint, live

Questions, or building something big?

Setup, custom integrations, architecture review. The team that built it answers. This form is the contact endpoint from the framework section.