SDK & CLI Overview
The meshive Python package ships a command-line tool and a Python SDK from a single install. Use the CLI to inspect your account, workspaces, pods, and host machines from a terminal; use the SDK to do the same programmatically — both synchronously and with asyncio.
What you can do today
Section titled “What you can do today”The read surface mirrors what you see in the console:
me— who the current API key belongs toworkspaces— the workspaces you can accesspods/pod— pods in a workspace, or a single pod’s detailmachines/machine— the machines you contribute as a host
Install
Section titled “Install”Requires Python 3.10+. The only runtime dependency is httpx.
pip install meshiveVerify the install:
meshive --versionAuthentication
Section titled “Authentication”The SDK and CLI authenticate with a Meshive API Key (READ scope). Issue one from the console. Keys look like meshive_ followed by a 64-character token.
The recommended flow is meshive login, which verifies the key against the API and stores it locally so later commands need no flags:
-
Log in
Section titled “Log in”Terminal window meshive login # prompts for the key (hidden input)The key is verified before it is saved. On success it’s written to
~/.meshive/credentials.jsonwith file mode0600(owner read/write only). -
Use any command
Section titled “Use any command”Terminal window meshive me # works with no --api-key -
Log out when done
Section titled “Log out when done”Terminal window meshive logout # removes the saved credentials
Providing the key without logging in
Section titled “Providing the key without logging in”meshive login is optional. You can also pass the key per-command or via the environment. The resolution order is --api-key flag › MESHIVE_API_KEY env › meshive login file:
export MESHIVE_API_KEY=meshive_xxxxxxxxmeshive memeshive me --api-key meshive_xxxxxxxxRelocating the config directory
Section titled “Relocating the config directory”By default credentials live in ~/.meshive/ (directory mode 0700). Set MESHIVE_CONFIG_DIR to relocate it — useful for test isolation or juggling multiple accounts:
export MESHIVE_CONFIG_DIR=/path/to/alt-config- CLI Reference — every command, flag, and filter
- Python SDK — sync and async clients, models, and error handling