Files
letta-server/letta/main.py
2025-10-07 17:50:45 -07:00

22 lines
546 B
Python

import os
import typer
from letta.cli.cli import server
# disable composio print on exit
os.environ["COMPOSIO_DISABLE_VERSION_CHECK"] = "true"
app = typer.Typer(pretty_exceptions_enable=False)
# Register server as both the default command and as a subcommand
app.command(name="server")(server)
# Also make server the default when no command is specified
@app.callback(invoke_without_command=True)
def main(ctx: typer.Context):
if ctx.invoked_subcommand is None:
# If no subcommand is specified, run the server
server()