Quickstart
Turn your LangGraph agent into an agent-native application in 10 minutes.
Prerequisites#
Before you begin, you'll need the following:
- An OpenAI API key
- Node.js 20+
- Your favorite package manager
- (Optional) A LangSmith API key - only required if using an existing LangGraph agent
Getting started#
Create a free account#
Sign up for a free developer account on our Enterprise Intelligence Platform to get a license key. You'll use it later to enable persistent threads, observability, and the inspector.
Choose your starting point#
You can either start fresh with our starter template or integrate CopilotKit into your existing LangGraph agent.
🎉 Start chatting!#
Your AI agent is now ready to use! Try asking it some questions:
Can you tell me a joke?Can you help me understand AI?What do you think about React?Troubleshooting
- If you're having connection issues, try using
0.0.0.0or127.0.0.1instead oflocalhost - Make sure your agent folder contains a
langgraph.jsonfile - In the
langgraph.jsonfile, reference the path to a.envfile - Check that your OpenAI API key is correctly set in the
.envfile - If using an existing agent, ensure your LangSmith API key is also configured
- Make sure you're in the same folder as your
langgraph.jsonfile when running thelanggraph devcommand - "graph is nullish" error (JavaScript starters): This means the LangGraph CLI couldn't load your graph. Ensure the export name in your
langgraph.jsonmatches your code (e.g.,"starterAgent": "./src/agent.ts:graph"requiresexport const graph = ...inagent.ts). Also verify all dependencies are installed withnpm installin your agent directory. - Make sure the runtime endpoint path matches the
runtimeUrlin your CopilotKit provider
Deploying to AWS?#
If you're planning to deploy your LangGraph agent to AWS Bedrock AgentCore, see the AgentCore deploy guide.
What's next?#
Now that you have your basic agent setup, explore these advanced features:
