Skip to main content
After creating your codebase, the next step is to get it up and running locally using docker cd into the agent-infra-docker directory
cd agent-infra-docker
Start your Agent Infra Docker using the following command:
ag infra up
You can also use the docker compose up -d --build command to start your Agent Infra Docker:
docker compose up -d --build
Press Enter to confirm using Docker Compose, and give it a few seconds for the Docker image to download (only the first time). Verify container status and view logs on the Docker dashboard.
  • Open localhost:7777/docs to view the FastAPI routes for the AgentOS instance.
  • Open localhost:5432 to view the PostgreSQL database.

Stop the containers

Play around with the AgentOS and stop it using:
ag infra down
or using the docker compose down command:
docker compose down

Restart the containers

Any changes you make to the codebase will be reflected in the running container. You can restart the container using:
ag infra restart
When updating environment variables, you need to restart the container for the changes to take effect.

Next

Congratulations on running your Agent Infra Docker locally! When you are happy with your AgentOS, you can take it to production.