{"id":26650988,"url":"https://github.com/helloprkr/swarms-master","last_synced_at":"2025-10-09T23:38:26.343Z","repository":{"id":268204720,"uuid":"903631045","full_name":"helloprkr/swarms-master","owner":"helloprkr","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-15T06:11:07.000Z","size":5341,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T23:50:33.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helloprkr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-15T05:41:13.000Z","updated_at":"2024-12-15T06:11:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b408936-c95c-433d-adc7-3712d6600391","html_url":"https://github.com/helloprkr/swarms-master","commit_stats":null,"previous_names":["helloprkr/swarms-master"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/helloprkr/swarms-master","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloprkr%2Fswarms-master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloprkr%2Fswarms-master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloprkr%2Fswarms-master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloprkr%2Fswarms-master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helloprkr","download_url":"https://codeload.github.com/helloprkr/swarms-master/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloprkr%2Fswarms-master/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002311,"owners_count":26083340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-25T02:49:20.337Z","updated_at":"2025-10-09T23:38:26.335Z","avatar_url":"https://github.com/helloprkr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swarms AI Framework\n\nA framework for building and orchestrating AI agents using various LLM providers (OpenAI, Anthropic, etc.).\n\n## Features\n- Basic Agent implementation with Anthropic Claude 2.1 integration\n- Computer Use capability with virtual desktop environment\n- Error handling for API calls\n- Environment variable management\n- Basic test implementation\n\n## Setup Instructions\n\n1. Clone the repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd swarms-master\n```\n\n2. Create and activate a virtual environment:\n```bash\npython -m venv .venv\nsource .venv/bin/activate  # On Unix/macOS\n# or\n.venv\\Scripts\\activate  # On Windows\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\npip install -e .\n```\n\n4. Set up environment variables:\n```bash\n# Add to ~/.zshrc or ~/.bashrc\nexport ANTHROPIC_API_KEY=\"your-api-key-here\"\n```\n\n5. Verify installation:\n```bash\npython test_swarm.py\n```\n\n## Computer Use Setup\n\nTo use Anthropic's Claude AI Computer Use feature:\n\n1. Prerequisites:\n   - Install Docker Desktop for Mac from docker.com\n   - Ensure you have a paid Anthropic account with API access\n\n2. Set up the Computer Use demo:\n```bash\ngit clone https://github.com/anthropics/anthropic-quickstarts.git\ncd anthropic-quickstarts/computer-use-demo\n```\n\n3. Build and run the demo:\n```bash\ndocker build -t computer-use-demo .\ndocker run -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY -p 3000:3000 computer-use-demo\n```\n\n4. Access the demo:\n   - Open http://localhost:8080 in your browser\n   - Interact with Claude in the virtual desktop environment\n\n## Known Issues and Solutions\n\n1. OpenAI API Quota Error\n   - Issue: \"Error code: 429 - You exceeded your current quota\"\n   - Solution: Switched to Anthropic Claude model\n\n2. Model Name Error\n   - Issue: \"claude-2 is a legacy model alias\"\n   - Solution: Updated to use \"claude-2.1\"\n\n3. API Response Handling\n   - Issue: Inconsistent response handling\n   - Solution: Added proper error handling and response validation\n\n4. Docker Issues\n   - Issue: \"Cannot connect to Docker daemon\"\n   - Solution: Ensure Docker Desktop is running before building containers\n\n## Development Notes\n\n### Current Implementation\n- Using Anthropic's Claude 2.1 model\n- Basic agent framework with retry mechanism\n- Error handling for API calls\n- Environment variable validation\n- Computer Use virtual desktop integration\n\n### Next Steps\n1. Implement additional LLM providers\n2. Add more comprehensive testing\n3. Implement logging system\n4. Add documentation for custom agent creation\n5. Enhance Computer Use capabilities\n\n## File Structure\n```\nsrc/\n  swarms/\n    models/\n      anthropic_chat.py  # Anthropic implementation\n      openai_chat.py     # OpenAI implementation\n      __init__.py\n    agent.py            # Base agent implementation\ntest_swarm.py          # Test implementation\n```\n\n## Testing\n\nRun the basic test:\n```bash\npython test_swarm.py\n```\n\nExpected output:\n```\n🤖 Test-Agent processing task: Hello, can you help me test if you're working?\nAgent response: [Success message from Claude]\n```\n\n## Computer Use Testing\n\nTest the Computer Use feature:\n1. Launch the virtual desktop environment\n2. Open the terminal in the virtual desktop\n3. Try basic commands like:\n   ```bash\n   ls\n   pwd\n   echo \"Hello Claude!\"\n   ```\n4. Ask Claude to perform tasks in the environment\n\n## Troubleshooting\n\n1. API Key Issues\n   - Verify environment variables are set\n   - Check API key validity\n   - Ensure proper permissions\n\n2. Model Issues\n   - Verify model name (\"claude-2.1\")\n   - Check API documentation for updates\n\n3. Installation Issues\n   - Clean install: `pip uninstall swarms \u0026\u0026 pip install -e .`\n   - Verify Python version (3.8+)\n   - Check dependency conflicts\n\n4. Docker Issues\n   - Ensure Docker Desktop is running\n   - Check Docker daemon status\n   - Verify port 8080 is available","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloprkr%2Fswarms-master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloprkr%2Fswarms-master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloprkr%2Fswarms-master/lists"}