CLI tool for deploying Moss voice agents
Project description
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
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
What Gets Deployed
When you run moss-agent deploy, the CLI:
- Validates your agent structure
- Packages your agent directory (excluding .env, pycache, .git, etc.)
- Uploads the package to Moss platform
- 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)__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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moss_agent_cli-0.1.0.tar.gz.
File metadata
- Download URL: moss_agent_cli-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66005fd95e51608e6511630b25ddb7bcc635ac976ed48d0cec4515de88f6fba1
|
|
| MD5 |
61758d04bd1a3c1554204797b7fea868
|
|
| BLAKE2b-256 |
14376dd8724a11f72d5fe68203a0d449ba78366724d82bdb26418d78b8834f61
|
File details
Details for the file moss_agent_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: moss_agent_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7d0ebbc1e5fe580fbff68eea00d9f5bb79c73f4ea837a0ae9e191065447365b
|
|
| MD5 |
6427e3963da959731129f90ac9d9fe97
|
|
| BLAKE2b-256 |
9042c22dd0439d07e20075df231efcb8c0e999bec4fc5bebf85536fe0d2b8c43
|