For AI agents
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.
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 --globalIt fetches the always-current skill from layerbase.com/skill.md, and falls back to the copy bundled in the package when offline.
What it can do
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.
The fact 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.
# 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.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/CDInstall 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 guideQuestions
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.
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.