Google Gemini
Models: gemini-2.5-flash, gemini-pro
Orchestration, tool calling, multi-language support
Galaxy CLI hỗ trợ nhiều AI models khác nhau, cho phép bạn linh hoạt chọn agent phù hợp với nhu cầu.
Google Gemini
Models: gemini-2.5-flash, gemini-pro
Orchestration, tool calling, multi-language support
Anthropic Claude
Models: claude-3.5-sonnet, claude-3-opus
Complex reasoning, code generation, analysis
OpenAI Codex
Models: gpt-4, gpt-3.5-turbo
Code completion, documentation, refactoring
Ollama (Local)
Models: qwen3-coder, gpt-oss, codellama
Local inference, privacy-focused, customizable
Galaxy CLI sử dụng kiến trúc orchestrator với các specialized agents:
┌──────────────────────┐ │ User Input (CLI) │ └──────────┬───────────┘ │ ▼ ┌────────────────────────────────────┐ │ Orchestrator Agent │ │ (Gemini / Claude / GPT-4) │ │ - Tool calling │ │ - Workflow decisions │ │ - Multi-language responses │ └────────────┬───────────────────────┘ │ ┌────────────────┼────────────────┐ │ │ │ ▼ ▼ ▼┌───────────┐ ┌───────────┐ ┌────────────┐│ Analysis │ │ Planning │ │ Code Gen ││ Agent │ │ Agent │ │ Agent ││ (Any AI) │ │ (Any AI) │ │ (Any AI) │└───────────┘ └───────────┘ └────────────┘Supported Models:
Vai trò:
Capabilities:
// Tool callingorchestrator.callTool('file_read', { path: './app.tsx' });
// Agent coordinationconst analysis = await orchestrator.callTool('analyze', {...});const plan = await orchestrator.callTool('plan', {...});
// Executionfor (const step of plan.steps) { await orchestrator.executeStep(step);}Supported Models:
Vai trò:
Output Example:
{ projectName: "Next.js E-commerce", type: "create_project", coreFeatures: [ { name: "Product Catalog", priority: "must-have" }, { name: "Shopping Cart", priority: "must-have" }, { name: "Checkout", priority: "must-have" } ], technicalStack: { frontend: ["Next.js 14", "TypeScript", "Tailwind"], backend: ["Prisma", "PostgreSQL"] }}Supported Models:
Vai trò:
Planning Strategy:
[ { step: 1, tool: 'command_run', action: 'Initialize project' }, { step: 2, tool: 'install_dependencies' }, { step: 3, tool: 'code_generate', featureName: 'Feature A' }, { step: 4, tool: 'code_generate', featureName: 'Feature B' }, { step: 5, tool: 'test_generate' }, // if testEnabled { step: 6, tool: 'code_review' } // if reviewEnabled]Supported Models:
Vai trò:
Integrated Tools:
file_write - Write code filesfile_read - Read existing codecommand_run - Run commandsfile_search - Search codebase# Galaxy tự động chọn agent phù hợpgalaxyGalaxy sẽ:
# Chỉ định agent cụ thểgalaxy --agent geminigalaxy --agent claudegalaxy --agent gpt4galaxy --agent ollama:qwen3-coder{ "agent": { "orchestrator": "gemini", "analysis": "claude", "planning": "claude", "codeGen": "claude" }}| Model | Provider | Speed | Quality | Cost | Use Case |
|---|---|---|---|---|---|
| Gemini 2.5 Flash | ⚡⚡⚡ | ⭐⭐⭐ | 💰 | Orchestration | |
| Claude 3.5 Sonnet | Anthropic | ⚡⚡ | ⭐⭐⭐⭐⭐ | 💰💰 | Code Gen, Analysis |
| GPT-4 | OpenAI | ⚡⚡ | ⭐⭐⭐⭐ | 💰💰💰 | Complex reasoning |
| Ollama (Local) | Local | ⚡ | ⭐⭐⭐ | 🆓 Free | Privacy, Offline |
# .env hoặc ~/.galaxyrcGEMINI_API_KEY=your_key_hereANTHROPIC_API_KEY=your_key_hereOPENAI_API_KEY=your_key_here// Adjust creativity/determinism{ "modelConfig": { "temperature": 0.7, // 0-1, higher = more creative "maxTokens": 8192, "topP": 0.95 }}