artvandelay

API VS Selfhost Skill — AI skill for Claude Code

AI community

Anthropic-standard Skill — decide API-vs-self-host LLM costs and fine-tune ROI from any agent context (Claude Code, Cursor, Codex).

How to install API VS Selfhost Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open artvandelay/api-vs-selfhost-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What API VS Selfhost Skill does

Anthropic-standard Skill — decide API-vs-self-host LLM costs and fine-tune ROI from any agent context (Claude Code, Cursor, Codex). Live GPU+API prices, deterministic local math.

Alternatives in AI

  • Fine Tuning — ai-research-skills Axolotl, LLaMA-Factory, PEFT, Unsloth 5.4k ★
  • Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
  • Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★

README

api-vs-selfhost-skill

Decide API-vs-self-host LLM economics and fine-tuning ROI from inside Claude Code, Cursor, Codex, or any agent harness with a shell + a web-fetch tool.

[![tests](https://github.com/artvandelay/api-vs-selfhost-skill/actions/workflows/test.yml/badge.svg)](https://github.com/artvandelay/api-vs-selfhost-skill/actions/workflows/test.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![python](https://img.shields.io/badge/python-3.10+-blue.svg)](#requirements) [![Agent Skills spec](https://img.shields.io/badge/Agent_Skills-compatible-7c3aed.svg)](https://agentskills.io/) [![GitHub stars](https://img.shields.io/github/stars/artvandelay/api-vs-selfhost-skill?style=flat&color=yellow)](https://github.com/artvandelay/api-vs-selfhost-skill/stargazers)

**Works with** [![Claude Code](https://img.shields.io/badge/Claude_Code-D97757?logo=anthropic&logoColor=white)](https://docs.claude.com/en/docs/claude-code/skills) [![Cursor](https://img.shields.io/badge/Cursor-000000?logo=cursor&logoColor=white)](https://cursor.com/docs/skills) [![Codex CLI](https://img.shields.io/badge/Codex_CLI-412991?logo=openai&logoColor=white)](https://developers.openai.com/codex/concepts/customization) [![Gemini CLI](https://img.shields.io/badge/Gemini_CLI-4285F4?logo=google&logoColor=white)](https://github.com/google-gemini/gemini-cli) [![Antigravity](https://img.shields.io/badge/Antigravity-1c1c1c?logo=google&logoColor=white)](https://antigravity.dev/)

The agent reads your code, PRDs, or billing screenshots; fetches live GPU and API prices; runs deterministic VRAM and dollar math via `scripts/calc.py`; and writes a short markdown report with cited sources.

Not in an agent? **[Use the web calculator →](https://artvandelay.github.io/should-i-self-host-llm/)**

Install

A skill is just a folder with a `SKILL.md`, placed where your agent looks for skills. Install = clone this repo into that folder. Requires **Python 3.10+** (standard library only —