Skip to main content

AIStoreHub CLI (aistorehub / aihub)

PyPI Version License: MIT Python: 3.9+

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 aistorehub and aihub commands are installed. You can use whichever you prefer!


🚀 Key Features

  • 1-Click MCP Auto-Configuration: Automatically injects MCP server configs into Claude Desktop, Cursor IDE, and Windsurf with automatic timestamped .bak safety 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.json file 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, and prompts in a directory:
aihub inspect ./my-agent-folder

⚙️ Environment Variables

You can optionally configure authentication, custom endpoints, and telemetry via environment variables:

  • AISTOREHUB_TOKEN or AIHUB_TOKEN: Personal Access Token (PAT).
  • AISTOREHUB_API_URL or AIHUB_API_URL: Custom API endpoint (default: https://aistorehub-be.onrender.com/api/v1).
  • DO_NOT_TRACK=1, AISTOREHUB_TELEMETRY_DISABLED=1, or AISTOREHUB_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.
  • Complete Opt-Out Controls (Supported in Code):
    • Per-Command Flag: Pass --no-telemetry on any command (aihub pull <target> --no-telemetry or aihub mcp <target> --no-telemetry).
    • Persistent Config: Run aihub telemetry disable (persists telemetry: false in ~/.aistorehub/config.json). Re-enable anytime with aihub telemetry enable.
    • Environment Variables: Export DO_NOT_TRACK=1, AISTOREHUB_TELEMETRY_DISABLED=1, or AISTOREHUB_TELEMETRY=0 in your shell profile.
    • Inspect Status: Run aihub telemetry status anytime 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.

📚 Resources & Documentation


📄 License

MIT © AIStoreHub Team

Metadata

Release files for aistorehub 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aistorehub 0.1.3
File Size Uploaded Provenance
aistorehub-0.1.3.tar.gz 20.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aistorehub 0.1.3
File Interpreter ABI Platform
aistorehub-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 42.9 kB

Release files / aistorehub-0.1.3.tar.gz

Download URL aistorehub-0.1.3.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
16668df940a721b3e343af853f25e09d69f3c4e274239ad33633eb704457b84f
BLAKE2b-256 checksum
How to use checksums
71af354ebee8111f3e22a90051b54052c65344bd2db733fe9b54b54467934b53
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.3-py3-none-any.whl

Download URL aistorehub-0.1.3-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73ebb900ff9757aea8393aff2a46b011f1abb5bf6edf859a3a3723b17a03b104
BLAKE2b-256 checksum
How to use checksums
ec12af5392c45da7c4cadcc74c89d311fca3f029a15c3f6474a212aa41d84cf4
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.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page