proprioceptive-swarm
Client SDK for the lens-swarm: a CPU-native consensus answer service with plurality confidence gates and a hash-chained receipt for every response.
- All inference is server-side. The package is inert without an account — no local model, no offline mode.
- Free trial tier: 140 requests/day per account (5,000 lifetime, 14-day window). Live numbers:
GET /v1/swarm/status.
pip install proprioceptive-swarm
python -c "from proprioceptive_swarm import Swarm; s=Swarm.signup('you@example.com'); print(s.client_id)"
palswarm answer "Where is the Eiffel Tower?" "Paris" "London" --k 1 # fast first verdict, ~6 s
Latency: --k 1 takes ~6 s (3 votes). The default --k 5 runs up to 15 backend votes and
takes roughly 1–2 minutes (73.8 s measured client-side 2026-11-26) with no interim output —
it is deliberating, not hung. Field-by-field API reference: https://api.proprioceptiveai.com/docs.
Evidence basis: verification-economics routing (23.5x), per-model uncertainty certification,
custody receipts (1290+, zero escapes). Claims are graded; see provider disclosures.
Swarm control plane (live — production edge >= 1.8.7)
Register your own swarm of up to 500 agents per account and drive it through four routes plus the judge. Everything stays server-side; the plane is contract-only here — no internals are documented or shipped by this SDK.
| Method | Route | Costs quota? |
|---|---|---|
s.agents_register(name, family) |
POST /v1/swarm/agents/register |
no |
s.agents_list() |
GET /v1/swarm/agents (owner-scoped) |
no |
s.agents_gate(agent_id, state) |
POST /v1/swarm/agents/gate |
yes — shared account quota |
s.agents_remove(agent_id) |
POST /v1/swarm/agents/remove |
no |
s.judge(question, choices, votes) |
POST /v1/swarm/judge |
yes |
agents_registerreturns{ok, client_id, agent_id (agt_-prefixed), family, name_sha, n_agents, cap: 500, receipt, version};familyis passed through for server-side validation (advertised aliases likephi-2resolve to certified heads).agents_gatesends your 16-float state vector to one agent and returns a verdict-only hook response (hook_verdictproceed|abstain|repair) carrying that agent's counters:flagged,verdicts_seen,flagged_count, plusquota_used_today. Gates draw from the same daily quota as every other billable call.judgeis the positional de-bias judge (lens-swarm-judge-1.0): give it the question, the choices, andvotes= a list of{agent_id, answer_index}— one vote per agent, up to 50; duplicate agent ids are rejected with a 4xx. It returns{converged, answer_index, leaning_index, agreement, n_agents, dissent, tied_indices, debias_offset, reason, n_votes, receipt, ...}. The judge corrects for answer position across your agents' votes; how it does that is server-side and outside this contract.
s = Swarm() # signup once, key kept in ~/.palswarm.json
a = s.agents_register("scout-1", "phi-2") # -> a["agent_id"] (agt_...)
v = s.agents_gate(a["agent_id"], state16) # verdict-only; costs 1 quota
j = s.judge("Q?", ["yes", "no"],
[{"agent_id": x, "answer_index": i} for x, i in swarm_votes])
s.agents_remove(a["agent_id"]) # free
Receipt proofs and integrity checks
Every response carries a hash-chained receipt id. Two routes, two audiences:
s.proof(receipt_prefix)— owner-only (edge >= 1.8.6):GET /v1/swarm/proof/<prefix>with yourX-API-Key. Returns the inclusion proof for one of your receipts:position,receipt_sha,prev,record, plus the chain head anchor (head_sha,head_count). Unknown-to-you prefixes come back as{"chain_integrity": "NOT_FOUND"}; a missing key is401(raised asSwarmNotAuthorized).s.verify(receipt_prefix)— public, integrity-only:GET /v1/swarm/verify/<prefix>for third parties who just need to confirm the chain link recomputes. No secret data moves.
s = Swarm() # key from signup / PALSWARM_KEY / ~/.palswarm.json
r = s.hook("phi-2", state) # state = exactly 16 finite floats from the probe-capture
# protocol; per-family capture shape is public:
# GET /v1/swarm/capture/<family> (see the docs)
p = s.proof(r["receipt"]) # owner-only inclusion proof
s.verify(r["receipt"]) # integrity-only check anyone can run
Supported models
model_family accepts the advertised aliases: phi-2 and Qwen2.5-1.5B /
Qwen2.5-1.5B-Instruct resolve server-side to their certified heads; canonical ids
(qwen2.5-0.5b-inst, tinyllama-1.1b-chat, ...) work directly. The live serving/cert
matrix is whatever GET /v1/swarm/models answers at call time — certification internals
are no longer disclosed by that route (cert reports disclosed: false), and this SDK
never ships, computes, or caches them. Certification is not deployment entitlement:
entropy flags fire only where the admin enables the feature. No model's raw logits or
weights leave the boundary.
Metadata
Release files for proprioceptive-swarm 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proprioceptive_swarm-0.1.13.tar.gz | 29.1 kB | Without provenance | Details for proprioceptive_swarm-0.1.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proprioceptive_swarm-0.1.13-py3-none-any.whl | Python 3 | none | any | Details for proprioceptive_swarm-0.1.13-py3-none-any.whl |
Total release size: 45.3 kB
Release files / proprioceptive_swarm-0.1.13.tar.gz
| Download URL | proprioceptive_swarm-0.1.13.tar.gz |
|---|---|
| Size | 29.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10837c2ee6e5c1196e9e546b24d88fe5ae09358adb7bf2043c1cbc3b6a58ebc4
|
|
BLAKE2b-256 checksum How to use checksums |
3900ad7ae118b558e35b8047f3450d4bec9b337eb2d66d6fa8bdcfe0624c069b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / proprioceptive_swarm-0.1.13-py3-none-any.whl
| Download URL | proprioceptive_swarm-0.1.13-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6a7098e7abc8a63630198baeaf86c0fe88898a3e2ba2fabad05ef0eab1e6c95
|
|
BLAKE2b-256 checksum How to use checksums |
894c3eff69198d2d057fa3191a97313c763e224369e23900113a67e1e8adef4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for proprioceptive-swarm 0.1.13
Provenance
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.