|
1 | | -# Computer-Using-Agent |
2 | | -Build a computer-using agent that can perform tasks on your behalf. |
| 1 | +# Computer-Using Agent |
| 2 | + |
| 3 | +An AI-powered assistant that uses **free** language models to help you with coding, writing, analysis, and more. Built with modern web technologies and full accessibility support. |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +- **🆓 100% Free Models** - Uses free tiers from Groq and Google Gemini |
| 12 | +- **⚡ Lightning Fast** - Powered by Groq's ultra-fast inference engine |
| 13 | +- **🎨 Beautiful UI** - Modern design with dark mode support |
| 14 | +- **♿ Fully Accessible** - WAI-ARIA compliant with full keyboard support |
| 15 | +- **🔄 Multiple Models** - Switch between Llama, Gemma, Mixtral, and Gemini |
| 16 | +- **📱 Mobile Friendly** - Responsive design with proper touch targets |
| 17 | + |
| 18 | +## Available Free Models |
| 19 | + |
| 20 | +### Groq (Fast Inference) |
| 21 | +| Model | Context | Best For | |
| 22 | +|-------|---------|----------| |
| 23 | +| Llama 3.3 70B | 128K | General tasks, coding, reasoning | |
| 24 | +| Gemma 2 9B | 8K | Quick responses, structured output | |
| 25 | +| Mixtral 8x7B | 32K | Multilingual, long conversations | |
| 26 | +| Llama 3.1 8B | 128K | Fastest responses | |
| 27 | + |
| 28 | +### Google Gemini |
| 29 | +| Model | Context | Best For | |
| 30 | +|-------|---------|----------| |
| 31 | +| Gemini 2.5 Flash | 1M | Multimodal, Google Search, reasoning | |
| 32 | +| Gemini 1.5 Flash | 1M | Vision, long documents | |
| 33 | +| Gemini 1.5 Flash 8B | 1M | Lightweight, fast | |
| 34 | + |
| 35 | +## Quick Start |
| 36 | + |
| 37 | +### Prerequisites |
| 38 | + |
| 39 | +- Node.js 18+ ([download](https://nodejs.org/)) |
| 40 | +- A free API key from [Groq](https://console.groq.com) and/or [Google AI Studio](https://aistudio.google.com/apikey) |
| 41 | + |
| 42 | +### Installation |
| 43 | + |
| 44 | +```bash |
| 45 | +# Clone the repository |
| 46 | +git clone https://github.com/sheikhcoders/Computer-Using-Agent.git |
| 47 | +cd Computer-Using-Agent |
| 48 | + |
| 49 | +# Install dependencies |
| 50 | +npm install |
| 51 | + |
| 52 | +# Set up environment variables |
| 53 | +cp .env.example .env.local |
| 54 | +# Edit .env.local and add your API keys |
| 55 | + |
| 56 | +# Start the development server |
| 57 | +npm run dev |
| 58 | +``` |
| 59 | + |
| 60 | +Open [http://localhost:3000](http://localhost:3000) to start chatting! |
| 61 | + |
| 62 | +## Environment Variables |
| 63 | + |
| 64 | +```env |
| 65 | +# Groq API Key (FREE - https://console.groq.com) |
| 66 | +GROQ_API_KEY=gsk_your_key_here |
| 67 | +
|
| 68 | +# Google Gemini API Key (FREE - https://aistudio.google.com/apikey) |
| 69 | +GOOGLE_GENERATIVE_AI_API_KEY=your_key_here |
| 70 | +``` |
| 71 | + |
| 72 | +## Tech Stack |
| 73 | + |
| 74 | +- **Framework**: [Next.js 15](https://nextjs.org/) with App Router |
| 75 | +- **AI SDK**: [Vercel AI SDK](https://ai-sdk.dev/) with provider registry |
| 76 | +- **UI Components**: [shadcn/ui](https://ui.shadcn.com/) + [Radix UI](https://radix-ui.com/) |
| 77 | +- **Styling**: [Tailwind CSS](https://tailwindcss.com/) |
| 78 | +- **Icons**: [Lucide React](https://lucide.dev/) (SVG icons, never emoji) |
| 79 | + |
| 80 | +## Accessibility |
| 81 | + |
| 82 | +This project follows strict accessibility guidelines: |
| 83 | + |
| 84 | +- ✅ Full keyboard navigation (WAI-ARIA APG patterns) |
| 85 | +- ✅ Visible focus indicators |
| 86 | +- ✅ Minimum hit targets (24px desktop, 44px mobile) |
| 87 | +- ✅ Respects `prefers-reduced-motion` |
| 88 | +- ✅ Proper ARIA labels and roles |
| 89 | +- ✅ Skip to content link |
| 90 | +- ✅ Color contrast (APCA compliant) |
| 91 | +- ✅ Screen reader friendly |
| 92 | + |
| 93 | +## Project Structure |
| 94 | + |
| 95 | +``` |
| 96 | +src/ |
| 97 | +├── app/ |
| 98 | +│ ├── api/chat/ # AI chat API route |
| 99 | +│ ├── layout.tsx # Root layout with providers |
| 100 | +│ ├── page.tsx # Home page |
| 101 | +│ └── globals.css # Global styles & design tokens |
| 102 | +├── components/ |
| 103 | +│ ├── chat/ # Chat UI components |
| 104 | +│ ├── layout/ # Header, footer |
| 105 | +│ ├── providers/ # Theme provider |
| 106 | +│ └── ui/ # shadcn/ui components |
| 107 | +├── hooks/ # Custom React hooks |
| 108 | +└── lib/ |
| 109 | + ├── ai/ # AI provider registry & prompts |
| 110 | + └── utils.ts # Utility functions |
| 111 | +``` |
| 112 | + |
| 113 | +## Scripts |
| 114 | + |
| 115 | +```bash |
| 116 | +npm run dev # Start development server |
| 117 | +npm run build # Build for production |
| 118 | +npm run start # Start production server |
| 119 | +npm run lint # Run ESLint |
| 120 | +npm run typecheck # Run TypeScript checks |
| 121 | +``` |
| 122 | + |
| 123 | +## Contributing |
| 124 | + |
| 125 | +Contributions are welcome! Please follow these guidelines: |
| 126 | + |
| 127 | +1. Follow the accessibility requirements (MUST/SHOULD/NEVER rules) |
| 128 | +2. Use SVG icons only (never emoji as UI elements) |
| 129 | +3. Ensure keyboard navigation works |
| 130 | +4. Test with screen readers |
| 131 | +5. Honor `prefers-reduced-motion` |
| 132 | + |
| 133 | +## License |
| 134 | + |
| 135 | +MIT License - see [LICENSE](LICENSE) for details. |
| 136 | + |
| 137 | +## Author |
| 138 | + |
| 139 | +Built by [@sheikhcoders](https://github.com/sheikhcoders) |
| 140 | + |
| 141 | +--- |
| 142 | + |
| 143 | +**Note**: This project uses free API tiers. Please respect rate limits and usage policies of the AI providers. |
0 commit comments