CoolFace
Apppublic

PYAE1994/openhands-genspark-agent

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

Onehands Autonomous AI Developer v12.0

Real autonomous AI developer platform — not just talk, it actually CODES, EXECUTES, and DEPLOYS.

✅ What Works

FeatureEndpointStatus
Multi-provider chatPOST /chat
Streaming chatPOST /chat/stream
ReAct agent loopPOST /agent/task
Code executionPOST /execute✅ E2B + local
Project generationPOST /dev/generate
GitHub operationsPOST /dev/github
Full dev workflowPOST /dev/workflow
Code intelligencePOST /dev/explain etc
Async tasksPOST /tasks
File workspacePOST /workspace/files
Memory systemPOST /memory

🔑 Required Secrets (HF Space Settings → Variables)

GEMINI_KEY=key1,key2,...          # Google Gemini API keys
GITHUB_TOKEN=ghp_xxx              # GitHub token (for LLM + GitHub ops)
SAMBANOVA_KEY=xxx                 # SambaNova API key  
DATABASE_URL=postgresql://...     # Supabase PostgreSQL
REDIS_URL=redis://...             # Upstash Redis
E2B_API_KEY=e2b_xxx               # E2B code execution sandbox
HF_TOKEN=hf_xxx                   # HuggingFace token
VERCEL_TOKEN=vcp_xxx              # Vercel deploy token

🚀 Quick Start

bash
# Chat
curl -X POST https://pyae1994-openhands-genspark-agent.hf.space/chat \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello!", "provider": "gemini"}'

# Run autonomous agent task
curl -X POST https://pyae1994-openhands-genspark-agent.hf.space/agent/task \
  -H "Content-Type: application/json" \
  -d '{"task": "Write and run a Python fibonacci function", "max_steps": 5}'

# Generate a full project
curl -X POST https://pyae1994-openhands-genspark-agent.hf.space/dev/workflow \
  -H "Content-Type: application/json" \
  -d '{"description": "REST API for todo list", "stack": "python-fastapi"}'

📡 All API Endpoints

MethodPathDescription
GET/Service info
GET/healthHealth check
GET/modelsAvailable models
POST/chatChat (non-streaming)
POST/chat/streamChat (SSE streaming)
WS/ws/{room}WebSocket
POST/executeRun code in E2B
POST/agent/taskAutonomous agent
POST/agent/planGenerate plan
POST/memorySave memory
GET/memoryGet memories
POST/conversationsCreate conversation
GET/conversationsList conversations
POST/dev/generateGenerate project
POST/dev/workflowFull dev workflow
POST/dev/githubGitHub operations
POST/dev/deployDeploy to Vercel/HF
POST/dev/explainExplain code
POST/dev/refactorRefactor code
POST/dev/debugDebug code
POST/dev/reviewReview code
POST/tasksSubmit async task
GET/tasks/{id}Get task status
POST/workspace/filesCreate file
GET/workspace/filesList files