samathenge

Pycode — AI skill for Claude Code

AI community

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:

  1. Base URL: the provider's OpenAI-compatible endpoint, e.g. https://api.example.com/v1. If you paste the full .../chat/completions URL, the ending is trimmed for you.
  2. Model name: exactly as the provider names it.
  3. 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