API Documentation
AI-Powered Coding Agent with GitHub Integration
The Vibez.now API provides a headless Claude-powered AI coding agent that can read, write, and execute code in isolated user workspaces. The agent integrates with GitHub for version control and includes an approval system for critical actions.
Latest AI model
Files, Git, Code
Secure per-user
Clone, commit, push
Confirm critical actions
Complex workflows
All endpoints (except status) require Authorization: Bearer YOUR_TOKEN
Create a new account
{ "email": "you@example.com", "password": "pass", "username": "Name" }
Login with existing credentials
{ "email": "you@example.com", "password": "pass" }
Save GitHub credentials for the agent
{
"githubUsername": "your-username",
"githubToken": "ghp_xxxx",
"gitEmail": "you@example.com",
"githubRepo": "username/repo-name"
}
repo scope.
Check if GitHub credentials are configured
Remove stored GitHub credentials
Send a message to the AI coding agent
{
"message": "Clone my repo, add index.html, commit and push",
"context": [], // Optional: conversation history
"clearHistory": false // Optional: clear server history
}
Get your conversation history
Clear your conversation history
Check agent availability (no auth required)
The agent requests approval before critical actions like git push. The chat request waits until you approve.
Approve or reject a pending action
{ "approved": true }
Get all pending approvals for your user
The agent has access to these tools in your isolated workspace:
// 1. Login
const { token } = await fetch('/api/auth/login', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email: 'you@example.com', password: 'pass' })
}).then(r => r.json());
// 2. Chat with agent
const { reply } = await fetch('/api/agent/chat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${token}`
},
body: JSON.stringify({
message: 'Create index.html with Hello World, commit and push'
})
}).then(r => r.json());
console.log(reply);