claude-code-from-scratch
Rebuild Claude Code’s core in ~5,000 lines: an 11-chapter coding-agent masterclass.
A Claude Code-style coding agent that runs anywhere and works with almost any model provider
openclaude is an open-source ai agents project by Twigpine (Twigpine/openclaude on GitHub). It has 33,685 GitHub stars and 9,104 forks, is released under the MIT license, and was last updated on GitHub on 7 October 2026.
Decide what you want to achieve with openclaude and check the README on GitHub for requirements before installing.
Clone the repository from GitHub (or take the packaged install route in step 3 if the README offers one).
Follow the project's documented install commands — the Run section below lists the exact ones — and add any required API keys or models.
Work through the README's quickstart example end to end, then adapt it to your own project or data.
Documented setup guides cover many providers, with fast paths for OpenAI-compatible APIs and local Ollama.
Interactive terminal sessions with resume and fork of conversations, plus background sessions.
Built-in web search/fetch tools so the agent can read documentation while it works.
Supports agent definitions and a companion 'buddy' feature described in the README.
Can run as a headless gRPC server for programmatic/embedded use.
An editor extension complements the CLI for in-editor workflows.
Get the OpenClaude source.
git clone https://github.com/Twigpine/openclaude.git
cd openclaudeInstall globally from npm (requires Node.js >= 22).
npm install -g @gitlawb/openclaude@latestFollow the README's fastest setup for OpenAI or local Ollama, then launch the agent in your project.
openclaudeopenclaude is maintained by the Twigpine organization/account on GitHub, together with open-source contributors, in the public repository Twigpine/openclaude.
Yes — the code is open source under the MIT license. You can use, modify and redistribute it under that license's terms.
It depends on the provider you choose: cloud providers need your paid API key, while a local Ollama setup can run with no API key at all.
The official client is Anthropic-only and polished; OpenClaude trades that focus for provider freedom — many APIs plus local models — as a community-maintained derivative.
Clone the repository from GitHub, follow the install commands in the Run section (taken from the project's README), and complete the documented quickstart example before adapting it to your own use case.
Rebuild Claude Code’s core in ~5,000 lines: an 11-chapter coding-agent masterclass.
Community-built terminal coding agent: bring your own model, keep code local.
A coding agent that runs on your model, your machine, your rules.
C99+ style guide with an AI agent skill for formatting code.
smolagents — Hugging Face's barebones agent library where agents think in code: a CodeAgent that writes its actions as Python, model-agnostic, Apache-2.0
Microsoft's trainer for AI agents - reinforcement learning for almost any agent framework
The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if openclaude is not the right fit.
A personal AI that really does things — on any OS, with your data staying yours.
An agentic skills framework & software development methodology that works.
Agent harness optimization system with skills, memory and security for Claude Code, Codex and more
The agent that grows with you — a Python framework for adaptive AI agents.
DeepSeek's plugin-based agent harness where everything is a plugin.
Free and open — grab the source, star the repo, and start creating.