Skip to main content
skill CX Codex

python-sdk — Claude Code skill: what it does, how to install

python-sdk teaches your coding assistant how to use the inference.sh Python package to run generative apps and assemble agents.

no license 241 installs ★ 31 updated 2026-08-31

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add 101-skills/superpowers --skill python-sdk -a claude-code
Open on GitHub

What python-sdk does

This skill supplies coding agents with ready patterns for the inferencesh library. It covers calling hosted models synchronously or via streaming logs, launching tasks without blocking, and maintaining warm workers using sessions with timeouts up to 3600 seconds. File paths passed into app inputs upload automatically.

The reference includes patterns for building ad-hoc agents on top of core models such as Claude Sonnet 4 or GPT-4o. You can register custom tools, attach sub-agents, trigger external webhooks, and enforce human approval before sensitive actions run.

Running the resulting code requires Python 3.8 or newer and an INFERENCE_API_KEY token set in your environment.

What it helps with

  • execute hosted AI models through the inference.sh Python client
  • stream execution logs and task progress directly in terminal apps
  • create multi-turn agents with tool calling and human confirmation steps
  • handle automatic file uploads and stateful worker sessions

Example prompts for the agent

  • Write a Python script using inferencesh to run infsh/flux-1-dev with streaming progress.
  • Create an ad-hoc agent backed by infsh/gpt-4o that calls a custom Slack webhook tool.
  • Show how to start a stateful inference.sh session with a 300-second idle timeout.

How to install python-sdk

1Skills CLI (Vercel)

npx skills add 101-skills/superpowers --skill python-sdk -a claude-code

2Manually: put the files in place

~/.claude/skills/python-sdk/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/python-sdk/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about python-sdk

How to install python-sdk in Claude Code?

Run npx skills add 101-skills/superpowers --skill python-sdk -a claude-code in your terminal.

What does the python-sdk skill do?

It gives your assistant reference patterns for the inferencesh package, covering model execution, file handling, and agent creation.

What dependencies are needed to run the code?

You need Python 3.8+, the inferencesh pip package, and a valid API key configured in INFERENCE_API_KEY.

Similar skills

All skills for AI and ML →

From the same set81

The whole set →
elevenlabs-tts elevenlabs-tts generates speech with ElevenLabs voices through the belt CLI. Useful for making voiceovers and narrations right from the terminal. CX Codex +1 241installs seo-content-brief seo-content-brief is a Claude Code skill that researches keywords, reviews search results, and structures an article brief before drafting. CX Codex +1 241installs ai-voice-cloning ai-voice-cloning generates spoken audio and character voiceovers via inference.sh CLI models like Inworld, ElevenLabs, and Kokoro. CX Codex +1 241installs nano-banana nano-banana — a skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode that calls Google Gemini native image models through the inference.sh CLI. CX Codex +1 241installs twitter-thread-creation twitter-thread-creation guides your agent in writing high-engagement X threads, formatting hook tweets, and dispatching posts via the belt CLI. CX Codex +1 240installs pitch-deck-visuals pitch-deck-visuals builds an investor-deck outline with slide design rules and data visuals. Use it for fundraising decks, demo days, grant proposals, or startup presentations. CX Codex +1 240installs ai-rag-pipeline ai-rag-pipeline — a skill for building RAG pipelines: web search supplies the facts, a model writes the cited answer. Handy for research agents and claim checking. CX Codex +1 240installs nano-banana-2 Generates images with Google Gemini 3.1 Flash Image Preview (Nano Banana 2) through the belt CLI. Runs on text prompts, edits existing images, and accepts up to 14 input files. CX Codex +1 240installs

Project sponsors

Companies that keep this analytics open