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
npx skills add 101-skills/superpowers --skill python-sdk -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/python-sdk/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/python-sdk/
1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill python-sdk -a codex2Manually: put the files in place
.agents/skills/python-sdk/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill python-sdk -a cursor2Manually: put the files in place
.cursor/skills/python-sdk/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install 101-skills/superpowers sdk/python-sdk/SKILL.md2Manually: put the files in place
.github/skills/python-sdk/SKILL.md1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill python-sdk -a gemini-cli2Platform CLI
gemini skills install https://github.com/101-skills/superpowers --path sdk/python-sdkManually: put the files in place
.devin/skills/python-sdk/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill python-sdk -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.