Pycode — AI skill for Claude Code
Claude Code-style terminal coding agent for any OpenAI-compatible API or local model.
How to install Pycode
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open samathenge/pycode and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Pycode does
Claude Code-style terminal coding agent for any OpenAI-compatible API or local model.
Alternatives in AI
- Free LLM — 79 free LLM API providers & 460+ free models (limits, no-card options) + Free-LLM Router: all of them behind o 1.1k ★
- Devo — Model-neutral agent desktop/runtime for private, enterprise, and OpenAI-compatible / Anthropic-compatible mode 316 ★
- TurboLLM — Run any local LLM engine, auto-tuned to your GPU — polished web UI + OpenAI/Anthropic-compatible API 251 ★
README
pycode
A Claude Code-style terminal coding agent that works with **any OpenAI-compatible API** (OpenAI, Groq, Gemini, OpenRouter, DeepSeek, Mistral, Together) or **local model** (Ollama, LM Studio, llama.cpp, vLLM). Bring your own key.
Install
pip install -r requirements.txt
Run
Just start it. With no provider configured it asks which one to use, then asks for your API key (hidden as you type) and offers to save it:
python pycode.py # pick provider, paste key
python pycode.py --provider groq # skip the menu; asks for the key if none is set
python pycode.py --ask-key # always ask for the key, ignoring env vars/config
Using a provider that isn't in the list
Pick **custom** in the menu (or run `pycode --choose` to bring the menu back, or `/custom` inside a session). You enter three things:
- Base URL: the provider's OpenAI-compatible endpoint, e.g.
https://api.example.com/v1. If you paste the full.../chat/completionsURL, the ending is trimmed for you. - Model name: exactly as the provider names it.
- API key: hidden as you type. Leave it blank for servers that need none.
You can save these, then start it again later with `pycode --provider custom`. Without the menu: `pycode --provider custom --base-url https://api.example.com/v1 --model my-model`.
Picking a valid model
Model names change often. Inside a session, `/models` lists what your provider offers (`/models llama` filters), and `/model ` switches to one. A "404 model not found" error means the name is wrong or retired.
Making a choice stick
`/model` and `/provider` only last for the current session. Run `/save` to make the current provider and model your default. Saving a custom provider (the "Save these settings" question) makes it the default straight away.
If a provider gives errors
`/test` inside a session tries a plain request, streaming, tool calling, and streaming with tools, and tells you wh
Related Skills
Ovo Local LLM
A private Claude-Code-style coding agent for Apple Silicon — run chat, code, and local model workflows on-devi
Bring Your Own Model
Run Claude Code on any OpenAI or OpenAI-compatible model — a tiny, dependency-free local bridge that translate
Afm Studio
Apple's on-device foundation model as a Mac app, a CLI, an MCP server for Claude, and a local OpenAI-compatibl
Freetoken
🆓 Free AI tokens by V Groups — pool every free LLM API (Gemini, Groq, OpenRouter, NVIDIA, Cohere, GitHub Mode
Vanityagent
Open-source AI coding agent for your terminal: ChatGPT, Claude, Gemini, Grok, Ollama and any OpenAI-compatible
LumaBrowser
Local AI desktop app: a Chromium browser with a GPU-aware llama.cpp runtime, OpenAI-compatible API, AI chat an
Related Agents
Lmstudio Local
A locally-hosted model served through LM Studio's OpenAI-compatible API,
Opencode
Coding subagent that runs inside opencode, on any provider and model opencode supports (OpenAI, Google, Moonsh
Openrouter Agent
Runs a model from any of ~60 vendors through OpenRouter's OpenAI-compatible endpoint, billed per token against