-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.py
More file actions
36 lines (26 loc) · 685 Bytes
/
cli.py
File metadata and controls
36 lines (26 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python3
"""AgentZeroCLI - CLI interface for Agent Zero remote control.
This is the entry point for the CLI (non-TUI) version.
Similar to Claude Code in look and feel.
Usage:
python cli.py
./a0 --cli
"""
import asyncio
import os
import sys
from logging_config import setup_logging
# Add project root to path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from cli.app import CLIApp
def main():
"""Run the AgentZeroCLI CLI application."""
setup_logging()
app = CLIApp()
try:
asyncio.run(app.run())
except KeyboardInterrupt:
print("\nGoodbye!")
sys.exit(0)
if __name__ == "__main__":
main()