Skip to main content

Moss Agent CLI

Command-line tool for deploying voice agents to the Moss platform.

Installation

pip install moss-agent-cli

Or install from source:

cd moss-agent-cli
pip install -e .

Usage

Deploy Command

Deploy your agent to the Moss platform:

moss-agent deploy

Push Env Vars

Upload your agent's runtime env vars from a local file. Secrets aren't packaged with the code — push them separately:

moss-agent env push                       # uses ./.env
moss-agent env push --env-file .env.prod  # custom file

Pushing restarts the deployed agent. Requires a prior successful moss-agent deploy.

Required Environment Variables

Set these environment variables or pass as CLI options:

export MOSS_PROJECT_ID="your-project-id"
export MOSS_PROJECT_KEY="your-project-key"
export MOSS_VOICE_AGENT_ID="your-voice-agent-id"

Or pass as options:

moss-agent deploy \
  --project-id "your-project-id" \
  --project-key "your-project-key" \
  --voice-agent-id "your-voice-agent-id"

Agent Structure

Your agent directory must contain an entry point file that imports from moss_voice_agent_manager:

Simple structure:

my-agent/
├── agent.py              # Entry point (uses MossAgentSession)
├── requirements.txt      # Optional: Additional dependencies
└── tools/               # Optional: Custom tools
    └── my_tools.py

Or with main.py:

my-agent/
├── main.py              # Entry point
├── requirements.txt
└── ...

Or with src structure:

my-agent/
├── src/
│   └── my_agent/
│       └── main.py      # Entry point
├── requirements.txt
└── ...

Example agent.py

from moss_voice_agent_manager import MossAgentSession

def get_weather(city: str) -> str:
    """Get weather for a city."""
    return f"Weather in {city} is sunny"

session = MossAgentSession(
    function_tools=[get_weather],
    max_tool_steps=10,
)

if __name__ == "__main__":
    session.run()

CLI Options

moss-agent deploy [OPTIONS] [DIRECTORY]

Arguments:
  DIRECTORY                Agent directory to deploy (defaults to current directory)

Options:
  --project-id, -p TEXT    Moss project ID (or set MOSS_PROJECT_ID env var)
  --project-key, -k TEXT   Moss project key (or set MOSS_PROJECT_KEY env var)
  --voice-agent-id, -v TEXT Voice agent ID (or set MOSS_VOICE_AGENT_ID env var)
  --api-url TEXT          Moss platform API URL (defaults to production)
  --help                  Show this message and exit
moss-agent env push [OPTIONS] [DIRECTORY]

Arguments:
  DIRECTORY                Agent directory (defaults to current directory)

Options:
  --env-file, -f PATH      Path to env file with KEY=VALUE pairs (default: .env)
  --project-id, -p TEXT    Moss project ID (or set MOSS_PROJECT_ID env var)
  --project-key, -k TEXT   Moss project key (or set MOSS_PROJECT_KEY env var)
  --voice-agent-id, -v TEXT Voice agent ID (or set MOSS_VOICE_AGENT_ID env var)
  --api-url TEXT          Moss platform API URL (defaults to production)
  --overwrite / --no-overwrite  Overwrite existing secrets (default: enabled)
  --ignore-empty          Skip env vars with empty values instead of failing
  --help                  Show this message and exit

What Gets Deployed

When you run moss-agent deploy, the CLI:

  1. Validates your agent structure
  2. Packages your agent directory (excluding .env, pycache, .git, etc.)
  3. Uploads the package to Moss platform
  4. Deploys to LiveKit Cloud

Your agent code is deployed as-is - no modification or generation.

Excluded Files

The following files/directories are automatically excluded from deployment:

  • .env - Environment variables (secrets) — push these separately with moss-agent env push
  • __pycache__/ - Python cache
  • .git/ - Git repository
  • *.pyc - Compiled Python files
  • .venv/, venv/ - Virtual environments
  • .DS_Store - macOS metadata

Development

Install in development mode:

cd moss-agent-cli
pip install -e .

Run the CLI:

moss-agent deploy

License

MIT

Metadata

Release files for moss-agent-cli 0.4.0

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

Source distribution (sdist)

Source distribution for moss-agent-cli 0.4.0
File Size Uploaded
moss_agent_cli-0.4.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moss-agent-cli 0.4.0
File Interpreter ABI Platform
moss_agent_cli-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.6 kB

Release files / moss_agent_cli-0.4.0.tar.gz

Download URL moss_agent_cli-0.4.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
38fa5b4b21f25dd23db2b05ca9bfe0bb9e0ff636834ea46334c0d506bd317b70
BLAKE2b-256 checksum
How to use checksums
74debadead1a17b5ef60a04d78b3e7318328a4502ca66b68949983a7b42a5829
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / moss_agent_cli-0.4.0-py3-none-any.whl

Download URL moss_agent_cli-0.4.0-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d119fe0030993174ff564745b6a14772955c3674cc36e562832dcb4838c01687
BLAKE2b-256 checksum
How to use checksums
930a01e45d2bab4d9bce598543980224f260102d7859086985b1aa1d10204c67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

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