{"id":47880725,"url":"https://github.com/fo0/clawstash","last_synced_at":"2026-04-04T01:45:24.336Z","repository":{"id":338580754,"uuid":"1158120425","full_name":"fo0/clawstash","owner":"fo0","description":"AI-optimized stash storage — dynamic RAG for agents. Store, search, and retrieve docs, code, and data on demand via MCP or REST API.","archived":false,"fork":false,"pushed_at":"2026-04-03T17:32:54.000Z","size":484,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T01:45:21.095Z","etag":null,"topics":["ai-tools","api","claw-util","developer-tools","docker","knowledge-bas","mcp","mcp-server","model-context-protocol","openclaw","rag","react","self-hosted","stash","ui"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fo0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-14T20:39:35.000Z","updated_at":"2026-04-03T17:32:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fo0/clawstash","commit_stats":null,"previous_names":["fo0/clawstash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fo0/clawstash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fo0%2Fclawstash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fo0%2Fclawstash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fo0%2Fclawstash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fo0%2Fclawstash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fo0","download_url":"https://codeload.github.com/fo0/clawstash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fo0%2Fclawstash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31384846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"ssl_error","status_checked_at":"2026-04-04T01:22:33.970Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-tools","api","claw-util","developer-tools","docker","knowledge-bas","mcp","mcp-server","model-context-protocol","openclaw","rag","react","self-hosted","stash","ui"],"created_at":"2026-04-04T01:45:23.577Z","updated_at":"2026-04-04T01:45:24.326Z","avatar_url":"https://github.com/fo0.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClawStash\n\n**Persistent storage for AI agents.** Store text, code, configs, and files — retrieve them via MCP or REST API.\n\nBuilt for agents like [OpenClaw](https://github.com/openclaw/openclaw) that need a reliable place to save and recall information across sessions.\n\n## Why ClawStash?\n\nAI agents lose context between sessions. ClawStash gives them a persistent memory:\n\n- **Store anything** — code snippets, configs, notes, multi-file projects\n- **Organize with tags \u0026 metadata** — structured key-value metadata and tags for easy retrieval\n- **Full-text search** — find stashes by content, name, description, or tags\n- **Token-efficient** — MCP tools return summaries first, full content only on demand\n- **Version history** — every change is tracked, diffable, and restorable\n- **Web GUI included** — dark-themed dashboard to browse, search, and manage stashes manually\n\n## Get Started\n\n### 1. Let your agent do it (recommended)\n\nCopy this into your OpenClaw agent — it installs ClawStash, creates test stashes, and sets up MCP automatically:\n\n```\nInstall ClawStash (ghcr.io/fo0/clawstash) on my server and set it up as your default persistent storage via MCP. Server: \u003cHOST_OR_IP\u003e, User: \u003cSSH_USER\u003e, Auth: \u003cPASSWORD_OR_KEY\u003e. Use port \u003cPORT\u003e (docker compose port mapping \"\u003cPORT\u003e:3000\"). Set ADMIN_PASSWORD to a secure value. After install: create an API token (scopes: read, write, mcp), create 2 test stashes to verify, then fetch /api/mcp-onboarding to read the full MCP spec and configure yourself. Details: https://raw.githubusercontent.com/fo0/clawstash/main/docs/openclaw-onboarding-prompt.md\n```\n\nReplace the `\u003c...\u003e` placeholders with your server details — your agent handles the rest.\n\n\u003e Step-by-step version: [docs/openclaw-onboarding-prompt.md](docs/openclaw-onboarding-prompt.md)\n\n### 2. Manual setup\n\nRun this on your server — no clone needed:\n\n```bash\nmkdir clawstash \u0026\u0026 cd clawstash \u0026\u0026 cat \u003e docker-compose.yml \u003c\u003c'EOF'\nservices:\n  clawstash:\n    image: ghcr.io/fo0/clawstash:latest\n    ports:\n      - \"3000:3000\"\n    volumes:\n      - ./data:/app/data\n    environment:\n      - NODE_ENV=production\n      - DATABASE_PATH=/app/data/clawstash.db\n      # - ADMIN_PASSWORD=your-secret-password\n    restart: unless-stopped\nEOF\ndocker compose up -d\n```\n\nOpen http://localhost:3000 — done. Database persists in `./data/`.\n\n\u003e Change port mapping (e.g. `\"8080:3000\"`) for a different port. Uncomment `ADMIN_PASSWORD` to protect the instance.\n\nAfter starting, point your AI agent at the onboarding endpoint to self-configure:\n\n```\nGET http://\u003cHOST_OR_IP\u003e:\u003cPORT\u003e/api/mcp-onboarding\n```\n\nThis returns all available MCP tools, schemas, and recommended workflows — your agent reads it and starts using ClawStash immediately.\n\n## MCP Connection\n\nAdd to your MCP client config (OpenClaw, Claude Code, Cursor, etc.):\n\n```json\n{\n  \"mcpServers\": {\n    \"clawstash\": {\n      \"type\": \"streamable-http\",\n      \"url\": \"http://\u003cHOST_OR_IP\u003e:\u003cPORT\u003e/mcp\",\n      \"headers\": { \"Authorization\": \"Bearer YOUR_TOKEN\" }\n    }\n  }\n}\n```\n\nCreate API tokens in the web GUI under **Settings \u003e API \u0026 Tokens** (scopes: `read`, `write`, `mcp`).\n\n## MCP Tools\n\n| Tool | What it does |\n|------|-------------|\n| `create_stash` | Store new content with files, tags, metadata |\n| `read_stash` | Get stash metadata + file list (content on demand) |\n| `read_stash_file` | Read a single file — most token-efficient |\n| `list_stashes` | Browse all stashes with summaries |\n| `search_stashes` | Full-text search with ranked results |\n| `update_stash` | Update existing stash content |\n| `delete_stash` | Remove a stash |\n| `list_tags` | List all tags with usage counts |\n| `get_tag_graph` | Explore tag relationships |\n| `get_stats` | Storage statistics |\n| `refresh_tools` | Get latest tool specs (for connected agents) |\n| `check_version` | Check for updates |\n\n## Documentation\n\n| Doc | Content |\n|-----|---------|\n| [OpenClaw Onboarding](docs/openclaw-onboarding-prompt.md) | Copy-paste prompt for full agent-driven setup |\n| [API Reference](docs/api-reference.md) | REST endpoints, examples, query parameters |\n| [MCP Guide](docs/mcp.md) | MCP tools, token-efficient patterns, transport options |\n| [Authentication](docs/authentication.md) | Admin login, API tokens, scopes |\n| [Deployment](docs/deployment.md) | Docker, CI/CD, GHCR, production setup |\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffo0%2Fclawstash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffo0%2Fclawstash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffo0%2Fclawstash/lists"}