A full-stack Claude-powered agent application built with Next.js 15 App Router, Tailwind CSS, ShadCN UI, Convex, WorkOS, and Claude 3.7 Sonnet. This project provides a production-ready chatbot interface with advanced AI capabilities powered by Anthropic's Claude model.
Modern Tech Stack
Real-time Communication
Secure Authentication
AI Integration
Advanced Agent Tools
Responsive Design
Clone the repository
git clone https://github.com/yourusername/claudemate-agent.git
cd claudemate-agent
Install dependencies
npm install
Set up environment variables
Create a .env.local
file in the root directory with the following variables:
WORKOS_API_KEY=your_workos_api_key
WORKOS_CLIENT_ID=your_workos_client_id
WORKOS_REDIRECT_URI=http://localhost:3000/auth/callback
ANTHROPIC_API_KEY=your_anthropic_api_key
NEXT_PUBLIC_CONVEX_URL=your_convex_deployment_url
Start the development server
# In one terminal, start the Convex development server
npm run convex
# In another terminal, start the Next.js development server
npm run dev
Open the application Visit http://localhost:3000 in your browser
claudemate-agent/
āāā app/ # Next.js App Router components
ā āāā auth/ # Authentication related pages
ā āāā dashboard/ # Main chat interface
ā āāā providers/ # React context providers
āāā components/ # Reusable UI components
ā āāā ui/ # ShadCN UI components
āāā convex/ # Convex backend
ā āāā schema.ts # Database schema
ā āāā messages.ts # Message-related mutations/queries
ā āāā agent.ts # Claude agent integration
āāā lib/ # Utility functions
ā āāā auth-server.ts # Server-side auth utilities
ā āāā claude.ts # Claude API integration
ā āāā tools.ts # Agent tool definitions
āāā public/ # Static files
npm run dev
- Start the development servernpm run build
- Build the application for productionnpm run start
- Start the production servernpm run lint
- Lint the codebasenpm run convex
- Start the Convex development serverVariable | Description | Required |
---|---|---|
WORKOS_API_KEY |
Your WorkOS API key | Yes |
WORKOS_CLIENT_ID |
Your WorkOS client ID | Yes |
WORKOS_REDIRECT_URI |
OAuth callback URL | Yes |
ANTHROPIC_API_KEY |
Your Anthropic API key for Claude | Yes |
NEXT_PUBLIC_CONVEX_URL |
Your Convex deployment URL | Yes |
The ClaudeMate Agent includes several built-in tools powered by Claude:
Text Analysis
Email Composition
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)For additional documentation on the technologies used:
This project is licensed under the MIT License - see the LICENSE file for details.