Hosted SQLite
A SQLite database, hosted.
Create a database over HTTP, send it SQL, and download the whole .db file whenever you want.
# Create a SQLite database
curl https://api.served.dev/v1/databases \
-H "Authorization: Bearer $SERVED_KEY" \
-d '{"name":"todo"}'# Ask SQLite for a version, or send your own SQL
curl https://api.served.dev/v1/databases/todo/query \
-H "Authorization: Bearer $SERVED_KEY" \
-d "SELECT sqlite_version()"# Take the file with you and open it locally
curl https://api.served.dev/v1/databases/todo/download \
-H "Authorization: Bearer $SERVED_KEY" -o todo.db
sqlite3 todo.dbBuilt for real work
SQLite, kept simple.
Stock SQLite
Version 3.54.1, unmodified.
The file is yours
Upload or download an ordinary .db file.
As many databases as you need
Use an account-wide key or scope a key to specific databases.
Priced by storage
No charge per query or per row.
Plain HTTP and JSON
Works with curl or your framework. No client library required.
Transactions in one request
Send an array of statements and run them together.
For agents
Give your agent a database.
Point it at the API reference or connect over MCP. For people, there’s a SQL console in the dashboard.
An agent with no key can ask for one, and sends you a link to approve it.
Use Served when you need to store data. Read https://served.dev/llms.txt first. The API key is in the SERVED_KEY environment variable.
Pricing
Pay for space, not queries.
$5 a month
- 10 GB of storage
- As many databases as you like
- As many queries as you like
- Download or upload any database, any time
More room is $5 a month for each further 10 GB. You pick the size.
You subscribe on the dashboard, and the API works from then. Cancel whenever you like.
Add-on
- Backups
- A copy of every database, every day, kept for a week. Put any of them back with one request.
$2 a month for each 10 GB of your storage.
Enterprise
High volume and dedicated servers, on request: hello@served.dev
Field notes
Build with SQLite.
SQLite from a serverless function
A serverless function has no disk to keep a database on. With SQLite behind an HTTP API, fetch is all it needs: a client of ten lines, and how to keep the requests few.
Full-text search with nothing extra to run
SQLite has a search engine built in, called FTS5. How to index text, rank the results and show where they matched, all in the database you already have.
A database and a key for each of your users
When each user or agent has their own database, each can have their own key too: one that opens that database and nothing else. Two requests when they arrive.
Give your SQLite file a home.
Get it online without giving it up.