ChartnautDocs

Projects

A project is everything you set up on Chartnaut for something you build: its keys, the sites its terminal may open on, its webhooks, its profile and its permissions. Your app is what your users open; the project is the Chartnaut side of it. People who connect see your app's name and icon ("Acme wants to connect"), never the word project.

Make and manage projects in Developers: open the menu under your name, then Developers, and New project. Each project has the tabs Overview, Keys, Sites, Webhooks, Profile, Permissions and Usage and logs.

Test and Live

Every project has two environments, like a payments provider's test mode.

Test

Live

Keys

cn_partner_test_…

cn_partner_live_…

Who can sign in

You and your team only

Anyone

Sites

http://localhost and http://127.0.0.1 on any port, with nothing to add; any https site, wildcards included

https sites only

Counts against your plan

The project itself, toward your plan's projects

The project, plus users, managed users, webhooks and data

Made with

Developers, the CLI, @chartnaut/create-app or the MCP server

Developers only

Build in Test. When you go live, the code stays the same: swap the key in your server's environment.

Keys

A key is your server's secret: it mints frame addresses and calls the partner API. It never goes to a browser, and @chartnaut/node refuses to start in one.

  • A new key is shown once. Copy it into your server's environment as CHARTNAUT_SECRET_KEY (.env.local on your machine).

  • Up to 20 keys per environment. Rotate one on the Keys tab, or revoke it.

  • Test keys can be made from the CLI (chartnaut project key) and the MCP server. Live keys are made only in Developers, in your browser. The CLI and AI assistants are refused with live_keys_browser_only and the page's address.

Sites

A site is an address your terminal may open on. A frame on any other page doesn't open.

Test

Live

localhost

Every http://localhost:* and http://127.0.0.1:*, automatically

Never

Exact

https://staging.myapp.com

https://myapp.com

Wildcard

https://*.vercel.app, anywhere

https://*.myapp.com, only on a domain that isn't shared: never *.vercel.app, *.netlify.app, *.pages.dev, *.github.io and the like

A site is the address alone: no path, no query. Chartnaut's own addresses are never allowed. Up to 20 sites per environment.

Going live

The project's Overview tab shows a quickstart for each environment. Live needs:

  1. Developer terms accepted.

  2. An https site added, on the Sites tab under Live.

  3. A Live key made, on the Keys tab.

Until Chartnaut verifies your app, the consent screen marks it Unverified app. Once it is live, Request verification on the Permissions tab, with your app's icon, website, support and privacy links filled in on the Profile tab. Chartnaut checks the site is yours and the name and icon don't copy another brand.

A project you no longer need goes with Archive project. That frees its place in your plan.

View as

In Test, View as on the Overview tab shows your app as someone else would see it, without a second account:

Option

What you see

Yourself

Your own account, as it is

A Free user

Chartnaut's Free plan: its chart and history limits, and upgrade prompts

A capped user

What a new Free user sees when your project is at its limit for free Chartnaut accounts

A managed user

Someone you create on Business, on a Free-level seat: no Chartnaut prompts

Reload your app on localhost: every Test frame your server mints for your team carries the preview, with no change to your code. A frame-token request with a Test key can also pass "view_as": "free" | "capped" | "managed" for one frame.

From the CLI, an AI assistant or your own scripts

The CLI's chartnaut init --project and chartnaut project commands, npm create @chartnaut/app and the MCP server's list_projects, create_project and create_test_key tools use these routes on the public API, with a key that has the apps:write permission:

Method

Path

What it does

GET

/v1/projects

Your projects, and how many your plan allows

POST

/v1/projects

A new project { name }, with its first Test key (shown once)

GET

/v1/projects/{slug}

One project

POST

/v1/projects/{slug}/keys

A new Test key

GET

/v1/projects/{slug}/sites

Its sites, and the ones Test allows automatically

POST

/v1/projects/{slug}/sites

A Test site { origin }

GET

/v1/projects/{slug}/quickstart

The quickstart: what chartnaut project check prints

The same routes answer under /v1/apps, with the same shapes. That old path keeps working and is marked deprecated in the OpenAPI file: use /v1/projects in new code.

apps:write ("Create and manage your developer projects") is never in a key's default permissions: the CLI asks for it by name when it signs you in, and the approval page shows it. The MCP server's tools need a connection that granted it.

Code

Why

invalid_request

A field is wrong; the message says which. Project names are 2 to 60 characters

name_reserved

The name starts with a reserved word, such as Chartnaut. Pick your own

app_limit

Your developer plan's project count is reached (details: used, cap). Plans and limits

rate_limited

5 new projects a day

site_refused

The site breaks a rule above; the message says which

key_limit

20 keys in that environment. Revoke one first

forbidden, owner_only

Your role on the project's team doesn't allow it

live_keys_browser_only, test_only

Live keys and Live sites are made in Developers; details.url is the page

forbidden_scope

The key or connection lacks apps:write. Sign in again with chartnaut login --projects

The codes and the apps:write name stay as they are, so code that checks them keeps working.