Skip to main content
Agents built with Novu can run on your local machine. Deploy them to development and production environments when you are ready.
By default, the agent runs on your local machine. To run the agent locally:
  • Scaffold your agent with npx novu init -t agent.
  • Add valid NOVU_SECRET_KEY and NOVU_API_URL values to your .env file.
  • Run the scaffolded project on your local machine.
  • Set the bridge option to Local in the agent overview section.
When you complete these steps, run the agent using the Novu CLI command below.
npx novu@latest dev --port <bridge_application_port> --no-studio
  • bridge_application_port - Port where your scaffolded project runs. Defaults to 4000.
  • no-studio - Disables Studio.
After you run the command, a tunnel starts on your machine. It forwards requests to your scaffolded project on bridge_application_port.Novu sets the bridge URL automatically to tunnel-url/api/novu.The agent listens for new messages and responds while running locally.

Next steps

Conversation observability

View agent conversations, lifecycle, and signal activity in the dashboard.