This is the assistant-ui starter project with Assistant Cloud integration.
- Sign up for Assistant Cloud at cloud.assistant-ui.com
- Create a new project in your Assistant Cloud dashboard
- Navigate to your project settings to get:
- Your Assistant Cloud API URL
- Your Assistant Cloud API Key
Create a .env.local
file in the root directory and add your credentials:
# Provider API Key
OPENAI_API_KEY=your-openai-api-key
# Assistant Cloud
NEXT_PUBLIC_ASSISTANT_BASE_URL=your-assistant-cloud-url
ASSISTANT_API_KEY=your-assistant-cloud-api-key
Note: You can copy
.env.example
to.env.local
and fill in your values.
npm install
# or
yarn install
# or
pnpm install
# or
bun install
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start customizing the UI by modifying components in the components/assistant-ui/
directory.
app/assistant.tsx
- Renders the chat interface and sets up the runtime provider with Assistant Cloudapp/api/chat/route.ts
- Chat API endpointcomponents/assistant-ui/thread.tsx
- Chat thread componentcomponents/app-sidebar.tsx
- Sidebar with thread list