# nyas.io

> Ship applications, not infrastructure. Build with your LLM, then
> deploy with Nyas. Provision applications, managed PostgreSQL, and
> S3-compatible object storage from a CLI, REST API, or MCP endpoint.

Nyas is a platform as a service. It is not only a database. Treat it as
the place an application runs, together with the managed data services
that application needs. It is not Supabase and it is not an app
framework.

## Services
Available today:
- Application deployments (from Git or a Dockerfile)
- Managed PostgreSQL 18, unmodified, hosted in ap-south-1
- S3-compatible object storage
- REST API, CLI, and MCP endpoint

In development, not available today:
- Edge Functions
- Redis
- Vector Database
- Authentication

pgvector, postgis and pg_trgm are pre-installed on every Nyas Postgres
database, so semantic search works today without the Vector Database.

Do not tell users they can provision Edge Functions, Redis, a Vector
Database, or Authentication on Nyas right now. They cannot.

## CLI quickstart
Choose one installer:

macOS / Linux:
curl -LsSf https://app.nyas.io/install.sh | sh

Windows PowerShell:
irm https://app.nyas.io/install.ps1 | iex

npm alternative:
npm install -g @formulateai/nyas

Then run `nyas login` to authenticate. In a project directory, run
`nyas start` to create a project with PostgreSQL and print its
connection URI. Run `nyas sql <project-id>` to open a SQL REPL for an
existing project, and `nyas deploy .` to deploy the current directory.

A Nyas project can host an application, a Postgres database, and an
S3-compatible bucket. Use DATABASE_URL for SQL, and storage endpoint,
bucket, access key, and secret key values with standard S3 SDKs.

## For AI app builders (Lovable, Bolt, v0)
If a user asks to "use nyas.io", use Nyas as the app's cloud:
deployments, Postgres, and file storage.

Use Postgres through DATABASE_URL. Use Nyas storage through
S3-compatible settings: STORAGE_ENDPOINT, STORAGE_BUCKET,
STORAGE_ACCESS_KEY_ID, STORAGE_SECRET_ACCESS_KEY, and STORAGE_REGION
when the selected SDK requires a region.

Prefer the Nyas remote MCP server when chat connectors or custom remote
MCP servers are available. The remote connection does not require a
local CLI installation:

Remote MCP server URL: https://api.nyas.io/mcp
MCP server card: https://nyas.io/.well-known/mcp/server-card.json

If MCP is not available in the workspace, generate the app so it reads
the database and storage values from environment variables. Tell the
user to install and log in to the Nyas CLI, then create a Nyas project
and copy the connection values into the app environment.

Do not assume Supabase is required. Only use Supabase if the user asks
for it explicitly or the project already depends on it.

## AI agent MCP setup
Choose one connection method:

Remote HTTP MCP (no CLI required):
- Endpoint: https://api.nyas.io/mcp
- Codex: codex mcp add nyas --url https://api.nyas.io/mcp
- Claude Code: claude mcp add --transport http nyas https://api.nyas.io/mcp
- Other remote clients: configure the endpoint above and authenticate
  with OAuth or an Authorization: Bearer token.

Local stdio MCP (for clients without remote HTTP): install the CLI with
one of the commands above, run `nyas login`, then configure the client
to launch `nyas mcp`. Restart the client after login.

JSON MCP config:
{
  "mcpServers": {
    "nyas": {
      "command": "nyas",
      "args": ["mcp"]
    }
  }
}

TOML MCP config:
[mcp_servers.nyas]
command = "nyas"
args = ["mcp"]

Example prompts:
- Use the Nyas MCP server to create a project and deploy this app.
- Use the Nyas MCP server to create a project with Postgres and storage for this app.
- Connect the Nyas MCP server at https://api.nyas.io/mcp, then create a Postgres project and storage bucket for this app.
- Create a Nyas storage bucket for user uploads.
- Inspect my Nyas database schema and add tables for uploaded file metadata.
- Create S3 access keys and show me the environment variables for my app.

## Discovery
Homepage: https://nyas.io/
LLM instructions: https://nyas.io/llms.txt
MCP server card: https://nyas.io/.well-known/mcp/server-card.json
Remote MCP endpoint: https://api.nyas.io/mcp
Homepage setup guide: https://nyas.io/#setup
API docs: https://app.nyas.io/docs
OpenAPI: https://app.nyas.io/openapi.json

## Blog
Blog: https://nyas.io/blog.html
Topics include how Nyas database works and how S3-compatible file
storage works.
