docs: share simplified CLI

This commit is contained in:
ishaansehgal99
2025-08-11 14:31:39 -07:00
parent ef9492987a
commit 9ddd1b14c0
3 changed files with 18 additions and 7 deletions

View File

@@ -232,12 +232,17 @@ Monitor your Claude Code sessions in real-time:
Launch Claude Code remotely from your phone or web browser:
1. **Download the app** or visit [omnara.ai](https://omnara.ai)
2. **Start the webhook server** on your computer:
2. **Install Omnara CLI**:
```bash
python -m webhooks.claude_code --cloudflare-tunnel
pip install omnara
# or with uv: uv pip install omnara
```
3. **Create your agent** with the webhook URL and API key shown
4. **Trigger agents remotely** from anywhere!
3. **Start the webhook server** on your computer:
```bash
omnara serve
```
4. **Create your agent** with the webhook URL and API key shown
5. **Trigger agents remotely** from anywhere!
### For Developers
@@ -322,7 +327,7 @@ For remote agent launching, the webhook automatically configures MCP:
"mcpServers": {
"omnara": {
"command": "pipx",
"args": ["run", "--no-cache", "omnara", "--stdio", "--api-key", "YOUR_API_KEY"]
"args": ["run", "--no-cache", "omnara", "mcp", "--api-key", "YOUR_API_KEY"]
}
}
}

View File

@@ -103,7 +103,7 @@ function createServerConfig(
default:
return {
command: "pipx",
args: ["run", "--no-cache", "omnara", "--stdio", "--api-key", apiKey],
args: ["run", "--no-cache", "omnara", "mcp", "--api-key", apiKey],
env: {
OMNARA_CLIENT_TYPE: client
},

View File

@@ -956,7 +956,10 @@ if __name__ == "__main__":
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog="""
Examples:
# Run webhook server
# Run webhook server (NEW - recommended way)
omnara serve
# Old way (still works):
python -m webhooks.claude_code
# Run with Cloudflare tunnel for external access
@@ -967,6 +970,9 @@ Examples:
# Run on a custom port
python -m webhooks.claude_code --port 8080
Note: 'omnara serve' is the new recommended way to run the webhook server.
It automatically includes Cloudflare tunnel and simplifies the setup.
""",
)
parser.add_argument(