fleet cli starts the API server and a local MLflow server for you.
Prerequisites
- Python 3.11, 3.12, or 3.13
- uv
- An existing PostgreSQL database
- A Daytona organization and Volume, plus an API key
- An API key for a model provider that DSPy supports. This guide uses
openai/gpt-4o-minias an example route.
1
Install
Clone the repository and install the Python environment.
2
Add credentials
Copy the example environment file.Open
.env and set these values:FLEET_TYPESAFE_API_KEY is optional. It enables the TypeSafe backend that preloads relevant Skills. Keep .env out of Git. To change non-secret defaults, copy config/fleet.toml.example to config/fleet.toml. See the configuration reference.3
Start a Session
fleet cli starts the API server on 127.0.0.1:8000 and local MLflow on 127.0.0.1:5001, then opens the terminal client. If a setting is missing or a check fails, Fleet first opens the setup checklist so you can fix it. Fleet creates its tables in the existing database at startup. Server logs go to .fleet/logs/server.log.The first time you use a Daytona organization, build the sandbox snapshot. Type /setup, choose Build snapshot (Alt+B), and confirm. Wait until the snapshot is active. See Snapshots.Try a prompt such as “Use Python to calculate the first 20 Fibonacci numbers and explain the result.” Type /help to see every command.4
Work with a file
For a CSV with Inspect the answer and the artifact before you rely on them.
region and revenue columns, attach it, select it as context, and ask for an artifact.5
Resume the Session later
Pass the same Session ID to return to the conversation.If you omit
--session, the client generates a short ID such as sess_1a2b3c4d.Run the server without the terminal
Start only the FastAPI server when you want to call the API from your own client.http://127.0.0.1:8000 and has no caller authentication. fleet serve doesn’t start MLflow. If the local MLflow server is unreachable, the server doesn’t start. Keep fleet cli running, or start MLflow separately as the CLI reference shows. See the HTTP API reference.