how do i access a local worker's health endpoint
# ask-ai
k
how do i access a local worker's health endpoint
✅ 1
t
Thanks for reaching out, Ethan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking how to access a local worker's health endpoint — here's how to do that. • Default endpoint: http//localhost8081/ (host 0.0.0.0, port 8081 in production) • Response codes: ◦ 200 OK — agent server is connected and healthy ◦ 503 Service Unavailable — agent not connected or failing • Customizing host/port: set
host
and
port
when creating the
AgentServer
. Example:
Copy code
server = AgentServer(
    host="0.0.0.0",
    port=9090,
)
Quick question: are you running the agent in development mode (it may pick a random port) or production mode? If dev, share the agent logs or the bind port shown there and I’ll help you confirm the exact URL. Sources: Server options | LiveKit Documentation, with interactive elements