Sylphx documentation
What Sylphx is, the first call, and how an account is put together.
- PlatformOne organization is the account; projects group one product's resources.11 pages
- AIWhat the AI API serves, where to start, and where the catalogue lives.11 pages
- AuthWhat Auth serves, the keys it uses, and how a sign-in reaches your app.2 pages
- DatabaseWhat a Sylphx database is, what you configure, and how it connects to your app.7 pages
- HostingWhat a Service is, what you set on it, and the path from a push to a request.5 pages
- API referenceEvery service, collection, method and error code, generated from the contracts.157 pages
Sylphx runs your application's supporting services — the deployment, the
database, the key-value store, the object storage, the search index, the user
accounts, the events, the email, the logs and the AI calls. They are one
product, not ten: one account, one key, one bill, and one API at
https://api.sylphx.com.
The first call
Every key can read who it belongs to. There is no extra scope to grant.
For the TypeScript example, set SYLPHX_API_KEY in your server environment
before running it.
sylphx access whoamiThe answer is the caller: the principal behind the request, the org,
project and env the key is scoped to, and the scopes it carries. Clients
read it once at start-up and fill their defaults from it, so a call can name a
resource without repeating where it lives.
- API
- https://api.sylphx.com
- Header
- Authorization: Bearer <key>
- Version
- v1, in the path
- Errors
- Contract routes answer application/problem+json (RFC 9457 style); a few older routes, such as whoami and the organization routes, still answer a plain JSON error body
Install a client
curl -fsSL https://sylphx.com/install/cli | bash
npm install -g @sylphx/cli
cargo install sylphx-cli --lockedAll three talk to the same API with the same key. The CLI is generated from the
same schema as the SDKs, so a command and a method are the same call:
sylphx data databases list and sylphx.data.databases.list({}) differ only in
spelling. The CLI reference covers install, updates and commands.
Agents and coding assistants covers the MCP server.
The API reference documents methods
and includes TypeScript examples.
Sign in
Run the login
bashsylphx loginApprove it in the browser
The CLI opens
sylphx.com/device?user_code=…in your browser with the code already filled in, and waits. Approve the request there, and the key is written to your operating system's keychain — not to a file in the project. The key lives 30 days; runsylphx loginagain after that. SetSYLPHX_NO_BROWSER=1to print the link without opening it. On a machine with no keychain, provideSYLPHX_API_KEYfor each command instead of storing a login. Published CLI compatibility lists version differences.Try the first call
bashsylphx access whoami
On a machine with no browser — a build agent, a container, a coding agent — pass an Access key instead of approving one:
sylphx login --api-key - # the key on stdin
SYLPHX_API_KEY=sylphx_sk_… sylphx data databases listHow an account is put together
Three things, and only three, decide where a resource lives and who may read it: an organization, a project and an environment.
- Organization — the account. It is created once and billed once. Members and their roles belong to it, so a person joins the organization rather than a project.
- Project — one product's resources, grouped. Most teams run one project per application, and a project is what a repository usually links to.
- Environment — a deployment target inside a project:
production,staging,development, or any name you like. Its mode,liveortest, decides which keys may touch it, so a test key can never write production data.
- Organization
- orgs/{org}
- Project
- orgs/{org}/projects/{project}
- Environment
- orgs/{org}/projects/{project}/envs/{env}
Everything else hangs below that path: a database, a bucket, a hosting service, a webhook endpoint, an email sender. Accounts and projects has the model in full, and Environments covers modes and where secrets live.
One path, one name everywhere
A resource's name is its path. The same string addresses it in the CLI, in the SDK, in an MCP tool call and over plain HTTP, which is why a call can be translated between the four clients without looking anything up.
Keys
A key carries the scopes it is allowed to use. An environment-scoped key acts
only in that environment; an organization-wide secret key has no project or
environment binding. sylphx login issues an organization-wide key, which can
create projects and change project-wide Hosting service definitions when your
role allows it. For a machine doing those writes, create an
organization-wide key,
not an environment-scoped key.
Scopes read <service>:<action> — hosting:read, data:write, secrets:write.
A key created for a browser or a mobile app is a publishable key, and it cannot
read or write your resources at all.
The secret is shown once, when the key is created or rolled. Send it as
Authorization: Bearer <key>.Keys and scopes
covers the two kinds, the scope list and rotation.
Where to go next
Start with the Hosting quickstart to create a project and deploy your repository. Then add Postgres or try the Auth API.
Agents and coding assistants
The MCP server, a key for a machine, and a project created end to end without a browser.
Read moreConnect an MCP client
Sign in from a client to give it read-only access, without copying an API key.
Read moreAccounts and projects
The account model, identifiers and the five member roles.
Read moreKeys and scopes
The two kinds of key, what each scope grants, and how rotation works.
Read morePlans, usage and limits
How to compare plans, track usage, and set a spend cap.
Read more