Skip to main content Switch to mobile version smartypants-network 0.1.2 Use when an agent needs cheap, exact open-model AI calls (OpenAI-compatible, priced per token). Smarty Pants: exact open models priced per token, plus sealed Linux workspaces on idle Macs. Standard library only.
pip install smartypants-network==0.1.2 Copy PIP instructions
The Smarty Pants Python kit as an installable package. Python 3.8 or newer, standard library only.
pip install smartypants-network from smartypants_network import SmartyPants sp = SmartyPants() # reads SMARTYPANTS_API_KEY print(sp.ask("Say hello in five words.")) with sp.workspace(minutes=10) as ws: # one VM, many commands (our own account first) ws.put_file("data.txt", "hello") print(ws.run("sh", "cat data.txt | wc -c")["stdout"]) When to use it
Use it for everyday AI calls where an exact open model is good enough and price matters: summaries, extraction, classification, drafting, tool calls, JSON output, embeddings and reranking. Work that can wait goes in a batch at half the per-token price.
Don't use it for work that needs a frontier-size model, more context than a model lists, or strict latency. Keep your current provider for those, and as a fallback.
Requests run on Macs owned by other people: don't send secrets or personal data unless the person you work for has approved it. Check is_ready on https://smartypants.network/v1/models first.
Framework setups (LangChain, OpenAI Agents SDK, Vercel AI SDK, LlamaIndex, Claude Code): https://smartypants.network/docs/agents#frameworks
One key covers models, half-price batches, sealed workspaces, a team's own Macs (Groups, free for members) and GitHub Actions runners on your own Macs (beta). sp.request("GET", "/v1/key") shows what this key may still spend.
Errors say what to do: SmartyPantsError has status, code and hint (one sentence, also at the end of the message). 402: your person adds credit; 429 or 503: wait Retry-After or use your fallback.
Ask your person before spending; sp.balance() and GET /v1/key show what is left.
Plugins and rules for Claude Code, Codex, Cursor and Copilot: https://github.com/Howcanio/smarty-pants-examples (the Claude Code plugin installs with /plugin install smartypants --marketplace howcanio/smarty-pants-examples).
The module is smartypants_network, not smartypants, because PyPI already has an unrelated smartypants package. The one-file download at https://smartypants.network/kits/smartypants.py keeps from smartypants import SmartyPants.
For the command line, use the smartypants tool from the npm package (see packages/cli).
node packages/cli/scripts/sync-kits.mjs # copies apps/gateway/agent-kit/smartypants.py here python3 -m pip wheel --no-deps -w packages/python/dist packages/python MIT licence. Published by the "Publish agent packages" workflow; bump version in pyproject.toml first.
Both files in this release have provenance metadata.
llm openai-compatible mcp agents sandbox apple-silicon langchain embeddings open-models
License OSI Approved :: MIT License
Operating System OS Independent
Programming Language Python :: 3
Release files for smartypants-network 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 38.6 kB
Release files / smartypants_network-0.1.2.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Security for smartypants-network 0.1.2
Both files in this release have been uploaded with provenance metadata.
With provenance smartypants_network-0.1.2.tar.gz Nov 26, 2026
Attestation for smartypants_network-0.1.2.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 26, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 9, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




