Complete guide to getting started with Cedar-OS
Check Prerequisites
Install using the cedar-os-cli
plant-seed
does:add-sapling
instead:Use this command to install cedar-os and download Cedar components in an existing project if plant-seed
fails.--yes
flag:Add your API key
.env.local
file in your project root and add your OpenAI API key:NEXT_PUBLIC_OPENAI_API_KEY
if Cedar-OS will make API calls directly from the browserOPENAI_API_KEY
if you’re routing calls through your backend/API routesInitialize CedarCopilot
CedarCopilot
component and configure your AI provider:"use client"
at the top of any file that uses CedarCopilot.Using Cedar
ChatInput
and ChatBubbles
components for seamless AI conversationsuseCedarState
Install the cedar-os package
Copy component source code
src/components/cedar-os/
).Install dependencies
CedarCopilot
.
Components missing ALL styling: If Cedar-OS components are missing all styling (we promise they are beautiful!), make sure you have Tailwind CSS configured in your project.
Don’t see the chat?: Make sure you add the correct chat component inside the <CedarCopilot>
boundary. See Chat Overview for setup instructions.
AI calls failing: Check that your API keys are correctly set in environment variables and accessible in your client code.
Using with non-Next.js frameworks: While Cedar-OS works with Create React App, Vite, and other React frameworks, you may need to manually configure Tailwind CSS and ensure proper client-side rendering for optimal performance.
TypeScript errors: Cedar-OS is fully typed - check that you’re importing types correctly and using the right component props.
Need help? Check our Community Discord or GitHub Issues. We’re always here to help :-D