Skip to content

Teach your agent to run your databases

One command installs a skill that lets Claude Code, Codex, and other coding agents audit your stack, provision and migrate databases, and answer capability questions from live facts, not a price they half-remember from months ago.

install the skill
npx layerbase agent init
# writes ./.claude/skills/layerbase/SKILL.md
# and prints an AGENTS.md snippet for other agents

# or install it for every project at once:
npx layerbase agent init --global

It fetches the always-current skill from layerbase.com/skill.md, and falls back to the copy bundled in the package when offline.

Audit, advise, provision, migrate

The skill wires the agent into the same REST API, CLI, and migration engine you use by hand.

Audit the codebase

It reads your package.json, env var names, and CI config for database, cache, and search providers Layerbase can consolidate: Neon, Supabase, PlanetScale, Upstash, Turso, Algolia, and more.

Advise honestly

It asks what you pay today before it claims a saving, maps each provider to the matching Layerbase engine, and tells you plainly when the free tier is not the right fit for production.

Provision

With an API key it creates, lists, queries, backs up, and branches your cloud databases over the REST API or the CLI, right from the terminal or a CI job.

Migrate

It can drive a read-once migration from a supported provider into a Layerbase engine, the same guided flow the dashboard uses, without ever modifying the source.

Prices it cannot get wrong

The reason agents quote outdated pricing is that they answer from memory. The skill closes that gap: it tells the agent to read a live capability document before it states any fact.

layerbase.com/agents.md is generated from Layerbase's own source at request time, so the plans, prices, database limits, engine list, branchable engines, migration sources, and hostable apps are always what the product actually does today.

Regenerated on every request. Never cached into the skill.
what the agent fetches first
# The live capability document, plain markdown:
curl https://layerbase.com/agents.md

# Sections: plans and prices, engines, branching,
# migration sources, hostable apps, the REST API,
# the CLI, CI/CD patterns, and honest plan guidance.

No account yet? The agent can make one

An agent working without a person at hand can register its own Layerbase account, buy Solo or Pro with a payment method it is already allowed to use, and create and use databases through the MCP server. Agent accounts pay full price from the first month, with no trial and no Free plan. The steps are in layerbase.com/auth.md, written for agents and generated from the code that enforces it.

When you want to own it, the agent gives you a claim link and a short code. You sign in with Google or GitHub as the email the agent named and type the code. The account, its databases and its subscription stay where they are.

Creating a new account is the agent's own call. An account a person already owns needs that person: the agent connects with OAuth sign-in you approve in your browser, an upgrade on an account with a card on file waits for your emailed approval, and an agent can never downgrade or cancel your plan.

Register, pay, build, then hand it over.
where an agent starts
# The registration guide, plain markdown:
curl https://layerbase.com/auth.md

# Register anonymously, buy Solo or Pro, use
# databases over MCP, then start a claim so a
# person can take the account over.

It sets up your CI too

Ask it to add a database to your pipeline and it reaches for transient, TTL-bound databases or branch-per-PR, the same patterns a human would use, with an API key it helps you create.

Databases for CI/CD

Install by hand or in another agent

Prefer not to run the CLI? Download the skill straight from /skill.md, or drop the AGENTS.md pointer into any agent that reads one. The full walkthrough is in the docs.

Agents guide

Give your agent a server you can come back to.

Open your browser, connect your repositories, and put your agent to work. Agent Servers keep your tools and terminal session on a private machine, ready when you reconnect. From $10/month per server, in beta. Agent usage is separate; Layerbase databases still have a free tier.

Explore Agent Servers

Questions about the agent skill

What is the Layerbase agent skill?

It is a single markdown file in the standard SKILL.md format that teaches a coding agent, like Claude Code or Codex, how to work with Layerbase: how to audit a codebase for database providers, how to provision and migrate over the REST API and CLI, and, crucially, where to fetch current facts. Install it with layerbase agent init or download it directly from layerbase.com/skill.md.

How does the skill avoid quoting stale prices?

The skill instructs the agent to read layerbase.com/agents.md before stating any price, plan limit, engine, or migration source. That document is generated from Layerbase source at request time, so the numbers are always current. Nothing factual is baked into the skill itself.

Does it work with agents other than Claude Code?

Yes. The skill is a portable SKILL.md file. layerbase agent init also prints an AGENTS.md snippet that points Codex and other agents at both the skill and the live capability document, so any agent that reads an AGENTS.md file knows the skill exists and where its facts come from.

Do I have to install anything to use it?

No. If you install nothing, an agent can still fetch layerbase.com/agents.md for live capabilities and layerbase.com/skill.md for the instructions. Installing the skill with the CLI just makes it automatic for every agent working in the repo.

Can an agent create its own Layerbase account?

Yes. An agent with no account to use can register one through layerbase.com/auth.md, buy Solo or Pro at full price from the first month, and create and use databases through the MCP server. There is no free agent account. When you want to own it, the agent gives you a claim link and a short code: you sign in with Google or GitHub as the email the agent named and type the code. If you already have an account, the agent connects to it with OAuth sign-in that you approve instead, and an upgrade on an account with a card on file waits for your emailed approval.

Give your agent the skill

One command, and the next time you ask about databases, caching, or leaving a provider, your agent already knows Layerbase, with the current facts.