AIStoreHub CLI (aistorehub / aihub)
The official command-line interface for AIStoreHub — the open registry and marketplace for autonomous AI systems, model instructions, agent workflows, and Model Context Protocol (MCP) servers.
⚡ Quick Install
pip install aistorehub
Tip: Both
aistorehubandaihubcommands are installed. You can also invoke the CLI directly anywhere withpython -m aihuborpython -m aistorehub!
🚀 Key Features
- 1-Click MCP Auto-Configuration: Automatically injects MCP server configs into Claude Desktop, Cursor IDE, and Windsurf with automatic timestamped
.baksafety backups. - Instant Artifact Pull: Download prompts, schemas, instructions, and test datasets straight into your current directory with verified distribution telemetry.
- Interactive Terminal Search: Query AI systems, agents, and verified benchmarks without leaving your terminal.
- Provenance & Metadata Inspection: View upstream repository sources, licensing, and maintainer verification status before pulling.
- 10-Second Manifest Inspector: Inspect local folders to auto-detect system prompts, tool schemas, and capabilities before publishing.
- Team & Organization RBAC: Switch between personal workspaces and enterprise multi-tenant organizations seamlessly.
📖 Command Reference
1. Authenticate (1-Click Browser Login & CI)
# 1-Click browser authorization with OAuth PKCE (RFC 7636 / RFC 8252):
aihub login
# CI/CD & Automation: Pipe token via standard input (avoids shell history & ps exposure):
echo $AISTOREHUB_TOKEN | aihub login --token-stdin
# Interactive terminal login with hidden prompt:
aihub login --interactive
# Inspect current authenticated user:
aihub whoami
# Log out and purge stored credentials:
aihub logout
🔒 Credential Storage at Rest: The CLI automatically secures your Personal Access Token in your operating system's native credential vault (Windows Credential Manager, macOS Keychain, or Linux Secret Service) via
keyring. In headless Linux / container environments without an active secret service daemon, credentials fall back to a dedicated~/.aistorehub/credentials.jsonfile locked with restrictive POSIX permissions (0o600, owner-only read/write). Plaintext tokens are never written to general configuration files.
2. Search Systems & Agents
# Search by keyword, problem, or capability:
aihub search "sql optimizer"
aihub search "mcp-server-postgres"
3. Inspect System Metadata & Provenance
# Check version, license, upstream repo, and quickstart instructions:
aihub info mcp-server-postgres
4. Pull System Instructions & Code
# Pull into current directory:
aihub pull community/mcp-server-postgres
# Pull into a custom destination folder:
aihub pull community/mcp-server-postgres --dest ./my-tools
5. 1-Click MCP Server Installation
# Auto-configure into Claude Desktop and Cursor simultaneously:
aihub mcp community/mcp-server-postgres
# Or target a specific client:
aihub mcp community/mcp-server-postgres --client claude
aihub mcp community/mcp-server-postgres --client cursor
aihub mcp community/mcp-server-postgres --client windsurf
6. Inspect Local Folders for Publishing
# Auto-detect manifests, tools, prompts, and view filtered files:
aihub inspect ./my-agent-folder
7. Package & Publish with .aihubignore & .gitignore
# Package, quarantine scan, and publish an AI system:
aihub publish ./my-agent-folder --type agent
🛡️ Smart File Exclusion & Security Rules
When inspecting or packaging a system (aihub inspect / aihub publish), the CLI automatically filters out sensitive credentials, temporary environments, and bulky build outputs before creating the release bundle:
.aihubignore(Highest Priority): Define custom patterns specifically for your AIStoreHub release. Rules here override.gitignoreand default rules (supports standard globbing, directory slashesdir/, and!negation)..gitignore(Standard Fallback): Standard git repository exclusions are respected automatically.- Default Safety Exclusions: Always filters
.env*,.venv/,node_modules/,__pycache__/,.git/,credentials.json,*.pem,*.key,id_rsa*, etc. - Guaranteed Whitelist Protection: Critical metadata and documentation files are never ignored (
.env.example,manifest.json,aistorehub.json,README.md).
⚙️ Environment Variables
You can optionally configure authentication, custom endpoints, and telemetry via environment variables:
AISTOREHUB_TOKENorAIHUB_TOKEN: Personal Access Token (PAT).AISTOREHUB_API_URLorAIHUB_API_URL: Custom API endpoint (default:https://aistorehub-be.onrender.com/api/v1).DO_NOT_TRACK=1,AISTOREHUB_TELEMETRY_DISABLED=1, orAISTOREHUB_TELEMETRY=0: Disables anonymous CLI usage telemetry.
🔒 Telemetry & Privacy (Transparent, Pseudonymous & Opt-outable)
AIStoreHub CLI records minimal, client-reported activity events (pull_succeeded and mcp_configured) to help community open-source maintainers evaluate discovery and distribution interest for their AI systems.
- What the CLI sends: Event name, target system ID, and CLI client version.
- What is NEVER collected: Passwords, Personal Access Tokens (PATs), shell commands, arguments, local file paths, directory contents, or private code.
- Server-side Network Metadata & Retention:
- On ingestion, the backend derives a one-way 32-character SHA-256 hash of the incoming IP address (
ip_hash) solely to enforce sliding-window duplicate suppression (120-second debounce) and protect against metric inflation. - Raw client IP addresses are discarded in-memory and are never written to application database tables or persistent application records. (Standard ephemeral cloud infrastructure ingress logs on hosting providers like Render remain subject to infrastructure provider retention policies).
- Because deterministic cryptographic hashes are technically classified as pseudonymous identifiers (potentially linkable in fixed-IP environments), we provide full user-controlled opt-outs.
- On ingestion, the backend derives a one-way 32-character SHA-256 hash of the incoming IP address (
- Complete Opt-Out Controls (Supported in Code):
- Per-Command Flag: Pass
--no-telemetryon any command (aihub pull <target> --no-telemetryoraihub mcp <target> --no-telemetry). - Persistent Config: Run
aihub telemetry disable(persiststelemetry: falsein~/.aistorehub/config.json). Re-enable anytime withaihub telemetry enable. - Environment Variables: Export
DO_NOT_TRACK=1,AISTOREHUB_TELEMETRY_DISABLED=1, orAISTOREHUB_TELEMETRY=0in your shell profile. - Inspect Status: Run
aihub telemetry statusanytime to see whether telemetry is currently active or disabled. - Opt-Out Scope: When telemetry is disabled via any of the above mechanisms, the CLI client suppresses all event reporting logic—zero network calls are dispatched to telemetry endpoints.
- Per-Command Flag: Pass
📚 Resources & Documentation
- Marketplace & Catalog: https://aistorehub.in
- CLI Reference: https://aistorehub.in/cli
- Full Documentation: https://aistorehub.in/docs
📄 License
MIT © AIStoreHub Team
Metadata
Release files for aistorehub 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aistorehub-0.1.6.tar.gz | 24.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aistorehub-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.2 kB
Release files / aistorehub-0.1.6.tar.gz
| Download URL | aistorehub-0.1.6.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
155935ee34e69ab8d516aec13ddfe5869efd9367f7e0a2e82cde459baa6b3d16
|
|
BLAKE2b-256 checksum How to use checksums |
6a818fb3e4b85806dd45e87e231016ec021c07eb5f6179ae2a65d7549084bf50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.1
|
Release files / aistorehub-0.1.6-py3-none-any.whl
| Download URL | aistorehub-0.1.6-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cd475b69612373b2418b38a8a9b3700dbec8e94f4230fb344fb98c97503476a
|
|
BLAKE2b-256 checksum How to use checksums |
3422017ac0c9e50ce4ef47d535e916dee82d630823c5d3e6082cfb98801407d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.1
|
Security for aistorehub 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.