Skip to main content
Once you’ve built your Agent, you need to start it as a service and connect it to client applications. This guide covers running your agent server.

Building Agent Service

AG-Kit provides server SDKs for exposing your Agent as an HTTP endpoint.
import { run } from '@ag-kit/server';
// import or construct your agent
// const myAgent = createMyAgent();

run({
  createAgent: () => ({ agent: myAgent }),
  port: 3000,
  cors: true,
});

Next Steps

After starting your agent service, you can connect it to client applications: