Karpathy
An agentic Machine Learning Engineer
Install / Use
/learn @K-Dense-AI/KarpathyREADME
Karpathy
Note: For more advanced capabilities and end-to-end machine learning, visit www.k-dense.ai.
An agentic Machine Learning Engineer that trains state-of-the-art ML models using Claude Code SDK and Google ADK. This is a very simple implemenation demonstraing the power of Claude Scientific Skills for machine learning.
Prerequisites
- Python 3.13 or higher
- uv package manager
- Claude Code installed and authenticated (see installation guide)
Setup
1. Clone the Repository
git clone https://github.com/K-Dense-AI/karpathy.git
cd karpathy
2. Install Dependencies
Install dependencies using uv:
uv sync
3. Environment Variables
Create a .env file in the karpathy directory with your API keys:
OPENROUTER_API_KEY=your_openrouter_api_key_here
AGENT_MODEL=your_model_name_here
The OPENROUTER_API_KEY is required for the agent to function properly.
This is the same environment variable that will be copied to the sandbox directory so the agents can use any API keys you provide here.
Quick Start
Run the startup script to set up the sandbox and start the ADK web interface:
python start.py
This automatically:
- Creates a
sandboxdirectory with scientific skills from Claude Scientific Skills - Sets up a Python virtual environment with ML packages (PyTorch, transformers, scikit-learn, etc.)
- Copies your
.envfile to the sandbox - Starts the ADK web interface
- Navigate to http://localhost:8000 in your browser
- Select
karpathyin the top left under 'Select an agent' - All outputs will be in the
sandboxdirectory so continue to monitor that as you converse with the agent
Note: Any files you want the agent to use (datasets, scripts, etc.) should be manually added to the sandbox directory.
Community
Join our K-Dense Slack community to connect with other users, share ideas, and get support:
Claude Scientific Skills
This repository is designed to work with the Claude Scientific Skills collection of ready-to-use scientific tools and workflows (link). The start.py setup script creates a sandbox that includes scientific skills from this collection so the karpathy agent can leverage specialized ML libraries and scientific workflows. For full details on the skills themselves, see the upstream repository’s README and documentation here.
Manual Usage
To set up the sandbox without starting the web interface:
python -m karpathy.utils
Note: Any files you want the agent to use (datasets, scripts, etc.) should be manually added to the sandbox directory.
To run the ADK web interface manually:
adk web
Then navigate to http://localhost:8000 in your browser.
Enhanced ML Capabilities
If you want substantially more powerful ML capabilities through a multi-agentic system, sign up for www.k-dense.ai. Currently in closed beta, launching publicly in December 2025.
Upcoming Features
- Modal sandbox integration - Choose any type of compute you want
- K-Dense Web features - We might make some features from K-Dense Web available here based on interest
Star History
Disclaimer
This project is not endorsed by or affiliated with Andrej Karpathy. The name is used as a tribute and out of deep respect for his contributions to AI and technical leadership.
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
