Install
openclaw skills install gh-kvstoreIn-memory key-value store with TTL for AI agents. Set, get, delete, list, flush, and stats. Supports any JSON value, optional TTL per key, and prefix-based key listing. Like a lightweight Redis for agent pipelines.
openclaw skills install gh-kvstoreLightweight key-value store for agent state, caching, and data sharing.
uvicorn kvstore.app:app --port 8013
curl -s -X POST http://localhost:8013/v1/set \
-H "Content-Type: application/json" \
-d '{"key": "user:1", "value": {"name": "Alice", "role": "admin"}}' | jq
curl -s -X POST http://localhost:8013/v1/set \
-H "Content-Type: application/json" \
-d '{"key": "cache:token", "value": "abc123", "ttl_seconds": 3600}' | jq
curl -s http://localhost:8013/v1/get/user:1 | jq
Returns key, value (any JSON), and ttl_remaining (seconds until expiry, or null).
curl -s "http://localhost:8013/v1/keys?prefix=user:" | jq
curl -s -X DELETE http://localhost:8013/v1/delete/user:1 | jq
curl -s -X POST http://localhost:8013/v1/flush | jq
curl -s http://localhost:8013/v1/stats | jq
| Method | Path | Description |
|---|---|---|
| POST | /v1/set | Set a key-value pair (optional TTL) |
| GET | /v1/get/{key} | Get value by key |
| DELETE | /v1/delete/{key} | Delete a key |
| GET | /v1/keys | List keys (optional ?prefix=) |
| POST | /v1/flush | Delete all keys |
| GET | /v1/stats | Hit/miss counts and total keys |