a containerized next.js application with claude code integration via trpc api
bun install
export ANTHROPIC_API_KEY="your-api-key"
bun run dev
.env file:echo "ANTHROPIC_API_KEY=your-api-key" > .env
docker compose down && docker compose build --no-cache && docker compose up
the app exposes a trpc endpoint at /api/trpc/click.sendToClaudeCode that accepts:
{
prompt: string, // the prompt to send to claude code
context?: any // optional context data
}
response format:
{
success: boolean,
results: Array<{
type: 'result' | 'text' | 'tool_use',
content: any,
timestamp: string
}>,
request: object
}
.
├── src/
│ ├── app/ # next.js app router
│ ├── server/ # trpc server & api
│ ├── utils/ # utility functions
│ └── claude-code-handler.ts # claude code sdk integration
├── public/ # static assets
├── Dockerfile # production docker image
└── docker-compose.yml # docker compose configuration
ANTHROPIC_API_KEY - required for claude code api accessNODE_ENV - set to 'production' for production buildsPORT - server port (default: 3000)bun install locally first)docker logs <container-name>mit
$ claude mcp add vibeOS \
-- python -m otcore.mcp_server <graph>