SpAIder install wizard, agent management, and Claude Code skill installer
Project description
spaider-cli
The official command-line interface for SpAIder, the memory infrastructure for AI agents.
spaider-cli is the recommended way to install, manage, and integrate SpAIder with your AI coding tools (Claude Code, Cursor, and others). It takes you from "never heard of SpAIder" to "working Studio + MCP-integrated Claude Code with a memory skill loaded" in one command.
pipx install spaider-cli
spaider init
Status
v0.1.0. All commands implemented and working.
| Command | Status |
|---|---|
spaider --version / --help |
✅ |
spaider init |
✅ One-shot setup wizard |
spaider doctor |
✅ Read-only health audit |
spaider agent create / list / rotate-key / delete |
✅ |
spaider mcp install |
✅ Claude Code + OpenCode + Cursor |
What it does
-
spaider init: one command from clone to a working, MCP-integrated stack:- Detect Docker (CLI + daemon).
- Prompt for the LLM provider (OpenAI / Anthropic / Ollama) and validate the credentials with a live probe (Ollama needs no key; it checks the daemon is reachable). Choosing Ollama configures local embeddings too, for a no-API-key stack.
- Generate the secrets you shouldn't have to type (JWT, connector key, Neo4j password) and write
.env. Re-run safe: existing secrets are preserved, never regenerated, so re-running never locks the stack out of its own database. - Start the Docker stack and wait for
/health. - Provision a
dev-${USER}agent (or--agent <name>) and capture its key. - Install the MCP server + skill into
~/.claude/(idempotent merge).
Flags:
--provider,--llm-key,--llm-base-url,--skip-docker,--skip-mcp,--agent. -
spaider doctor: read-only audit covering Docker,.env, LLM key, backend/health, embedding-dimension consistency, and the~/.claudeMCP + skill wiring. Exit 0 when all green/warn, 1 on a blocking failure. -
spaider agent ...: create / list / rotate-key / delete agents against the REST API (resolves agents by name). -
spaider mcp install: non-destructively merge SpAIder into your MCP client config (--for claude-code|opencode|cursor,--scope user|project); also writes the agent-side skill/guidance file so LLMs reflexively know when to call SpAIder. Targets the modern Streamable HTTP endpoint (/api/v1/mcp).
The skill file
A key part of the value: spaider mcp install ships not just the MCP server config but a skill file (~/.claude/skills/spaider.md) that tells the LLM when and why to use SpAIder's tools. Without it, MCP tools sit unused. With it, the LLM proactively reaches for SpAIder when the conversation warrants, exactly like Read/Edit/Bash are reflexive in Claude Code today.
Source content is at src/spaider_cli/skills/claude_code.md (Apache 2.0); copy and adapt for your own tools if useful.
Development
git clone https://github.com/Spaider-studio/spaider.git
cd spaider/cli
pip install -e ".[dev]"
pytest
Or from the SpAIder monorepo root:
make cli-dev # editable install of the CLI
make cli-test # run cli/tests/
Release (maintainers only)
CI runs as the cli-tests job of .github/workflows/ci.yml (every PR + push to main that touches cli/); releases run from .github/workflows/cli-release.yml on tag push.
One-time setup before the first PyPI release:
-
Create a PyPI account for the project.
-
Register a Trusted Publisher (pending publisher) for
spaider-cli:- PyPI Project → Publishing → Add a new pending publisher.
- Owner:
Spaider-studio, repo:spaider, workflow:cli-release.yml, environment:pypi. - GitHub: Settings → Environments → Create environment named
pypi(no protection rules needed for the first release).
-
Tag and push (CLI releases use namespaced
cli/v*tags; plainv*tags release the container images instead):git tag cli/v0.1.0 git push origin cli/v0.1.0
The workflow builds sdist + wheel, runs
twine check, then publishes via the OIDC trusted-publisher flow (no API tokens stored in the repo).
To rehearse without publishing, use the manual workflow_dispatch trigger with dry_run: true: it builds the artifacts but skips PyPI.
License
Apache 2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spaider_cli-0.1.2.tar.gz.
File metadata
- Download URL: spaider_cli-0.1.2.tar.gz
- Upload date:
- Size: 43.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e270a3d53f4d5249b15b74ae549bfe21d052e68da2b043f7d20ad2b405f15f90
|
|
| MD5 |
707689d2cdb1c47211dd208f4feefa8c
|
|
| BLAKE2b-256 |
6cbb301a511151721a69169e57d771470512496b2dadb0949bea9c4566b8b481
|
Provenance
The following attestation bundles were made for spaider_cli-0.1.2.tar.gz:
Publisher:
cli-release.yml on Spaider-studio/spaider
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spaider_cli-0.1.2.tar.gz -
Subject digest:
e270a3d53f4d5249b15b74ae549bfe21d052e68da2b043f7d20ad2b405f15f90 - Sigstore transparency entry: 1929334377
- Sigstore integration time:
-
Permalink:
Spaider-studio/spaider@5c7d6b736db7ca6f5f3da78a14c2e4df4f932efe -
Branch / Tag:
refs/tags/cli/v0.1.2 - Owner: https://github.com/Spaider-studio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cli-release.yml@5c7d6b736db7ca6f5f3da78a14c2e4df4f932efe -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file spaider_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: spaider_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 38.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
833097b3e76f72c3e57dea8f46c294ebf0f71e54b8356c1c5ec9927dd03d9884
|
|
| MD5 |
2944a8b18f0d6f45dd1c804bf8a8edf8
|
|
| BLAKE2b-256 |
476cc74ce52a36dc7f351bc2dd94735ac275e60867de2208e5f78d9bd7a5ab16
|
Provenance
The following attestation bundles were made for spaider_cli-0.1.2-py3-none-any.whl:
Publisher:
cli-release.yml on Spaider-studio/spaider
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spaider_cli-0.1.2-py3-none-any.whl -
Subject digest:
833097b3e76f72c3e57dea8f46c294ebf0f71e54b8356c1c5ec9927dd03d9884 - Sigstore transparency entry: 1929334519
- Sigstore integration time:
-
Permalink:
Spaider-studio/spaider@5c7d6b736db7ca6f5f3da78a14c2e4df4f932efe -
Branch / Tag:
refs/tags/cli/v0.1.2 - Owner: https://github.com/Spaider-studio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cli-release.yml@5c7d6b736db7ca6f5f3da78a14c2e4df4f932efe -
Trigger Event:
workflow_dispatch
-
Statement type: