Stateful tools, zero infrastructure
Key-value storage, a relational database, file storage, message queues, and vector search. All built in, all accessible from your tool code via fold.
Key-Value
Fast key-value storage with optional TTL expiration. Store configuration, cache results, or manage session state.
Database
SQL database per workspace. Run queries with parameterized bindings. Ideal for structured data that needs relational queries.
Object Storage
File and blob storage with versioning. Upload images, PDFs, generated assets, or any binary data. Retrieve by key.
Queue
Asynchronous message processing. Send tasks to a queue and process them in the background. Supports delayed delivery.
Fold Memory
Vector search for semantic retrieval and RAG. Store embeddings and query by similarity. Give your tools long-term memory.
No provisioning required
Storage bindings are attached automatically when you deploy. No databases to create, no buckets to configure, no connection strings to manage. Just use fold.kv, fold.db, fold.storage, fold.queue, or fold.vectorize and it works.
Full example: tool with persistent state
Combine multiple storage bindings in a single tool. This example stores notes in the database and makes them searchable via vector embeddings.
Start building stateful tools
Free tier includes storage, database, and queue access. No credit card required.
Get Started