Skip to content
Console

Install & Authentication

Install the meshive Python package, understand API key permission scopes and expiry, log in with meshive login, or pass credentials via environment variables.

Requires Python 3.10+. The runtime dependencies are httpx (0.27 or later, below 1.0), certifi and truststore.

For the CLI, install with uv or pipx so the meshive command stays in its own environment without hitting externally-managed-environment on Homebrew Python or modern Debian/Ubuntu. For the Python SDK inside a project or virtual environment, add meshive>=1,<2 with uv add or pip install:

Terminal window
# Install the CLI globally
uv tool install meshive
# Or add the SDK to a Python project
uv add "meshive>=1,<2"

If meshive isn’t found afterwards, run uv tool update-shell (or pipx ensurepath) and open a new terminal. Upgrade with uv tool upgrade meshive (or pipx upgrade meshive).

Verify the install:

Terminal window
meshive --version

These references describe 1.x. In a requirements file, keep the same pin (meshive>=1,<2) so you get fixes without breaking changes. CPU lines, local storage created with a pod, template port changes, storage usage warnings, waiting starts, transaction lookup, editing pods and storage, connecting to storage over SSH and model sets arrived in 1.2 (1.1 was not released on its own); if you use them, pin meshive>=1.2,<2.

1.0.0 works with code written for the 0.1 releases; no changes are needed. Change your pin to meshive>=1,<2, reinstall, and regenerate your lock file if you use one. Most pre-1.0 releases are being removed from PyPI (0.1.4 stays; the 1.0.0 release notes list the dates), so a pin to one of them stops installing after its removal date. Environments where one is already installed keep working.

The SDK and CLI authenticate with a Meshive API Key. Issue one in the console under Account → API keys — keys belong to your account, not to a workspace, so you can create one before any workspace exists. Keys look like meshive_ followed by a 64-character token and come in two permission levels:

PermissionWhat it allowsExpiry
Read onlyEverything that lists or shows resourcesRequired: 365 days by default and at most
Read & writeThe above, plus creating and renaming workspaces, deleting empty ones, creating, changing and deleting pods, storage, servings and tasks — including anything that spends credit — and hosting actions: removing or unlisting your machines, revealing machine logins and issuing install commandsRequired: 30 days by default, 90 at most

Every key expires. A write key that leaks can create pods on your account, delete pods, storage volumes and servings one at a time, and run your hosting actions: remove or unlist your machines, reveal their logins and issue install commands; it can’t delete a workspace that still holds assets, finished tasks, saved credentials or the other things listed under Deleting a workspace. A read key can fetch pod and task logs, which routinely contain tokens your container printed. Keys issued before this rule was introduced keep working until you revoke them. Revoke any key at any time from the same console page; the SDK reports a revoked or expired key as AuthenticationError, and a read-only key used for a write command as PermissionDeniedError.

The same page shows API key activity. Actions lists changes, checks and estimates with their results. Reads summarizes read requests by hour; see Activity log.

When a key stops or deletes a pod, or deletes a storage volume, a serving, a workspace or a machine, unlists a machine, reveals a machine login or issues an install command, the key’s owner gets an email naming the key and where the request came from (SDK & CLI, or the MCP client). If you didn’t expect it, revoke the key.

The recommended flow is meshive login, which verifies the key against the API and stores it locally so later commands need no flags:

  1. 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.json with file mode 0600 (owner read/write only).

  2. Terminal window
    meshive me # works with no --api-key
  3. Terminal window
    meshive logout # removes the saved credentials

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:

Terminal window
export MESHIVE_API_KEY=meshive_xxxxxxxx
meshive me

By default credentials live in ~/.meshive/ (directory mode 0700). Set MESHIVE_CONFIG_DIR to relocate it — useful for test isolation or juggling multiple accounts:

Terminal window
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
  • AI Agents (MCP) — connect Claude Code, Codex, Cursor, and other agents