Skip to main content

Agntshare (agnt.sr)

HTTPS for AI Agent State.

PyPI version License: MIT

Today, AI agents hand off tasks by stuffing 100k+ tokens of raw memory into prompt windows. It’s slow, expensive, and degrades context.

Agntshare replaces raw context with a cryptographically verified "coat-check ticket" (Pathway Token). Mint a token on Agent A, pass a tiny 28-byte string, and let Agent B resolve the exact state it needs.

🚀 Quickstart

Install the zero-dependency SDK:

pip install agentshare

Zero-Friction Local Handoff (No API Keys Required):

from agentshare import AgentShareClient

# Initialize in local sandbox mode
client = AgentShareClient(mode="local")

# Agent A (Research) - Mints token for a massive state payload
state_payload = {"summary": "Deep-dive analysis...", "data": [1, 2, 3, 4, 5]}
token = client.mint_pathway_token(payload=state_payload, framework="python")
print(f"Token: agnt.sr/{token}") 

# Agent B (Writer) - Resolves only the keys it needs
resolved = client.resolve_pathway_token(token, keys=["summary"])
print(resolved['state'])

🛠️ Framework Integrations

LangChain Integration

from agentshare.integrations import AgentShareCallbackHandler

# 1-Line RunnableConfig integration
handler = AgentShareCallbackHandler(ttl_seconds=3600)
chain.invoke(input_data, config={"callbacks": [handler]})

Universal MCP Server (Claude Desktop & Cursor)

# Run stdio FastMCP server
python -m agentshare.integrations.mcp_server

🔒 Security & Inviolable Laws

  1. Law 1: The Server is Blind (Zero-Trust Transport): The backend server NEVER parses or inspects payload bytes. Uploads and downloads use direct S3/R2 presigned URLs.
  2. Law 2: The Token is the Truth: Pathway Tokens carry mandatory SHA-256 integrity checksums, TTL expiration window, scope rules, and cryptographic signatures.
  3. Law 3: Zero-Friction Adoption: Integrations defensively swallow callback exceptions to ensure 0% impact on production agent executions.

License

MIT © Deepak V & Agntshare Contributors

Metadata

Release files for agntshare 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agntshare 0.1.0
File Size Uploaded Provenance Actions
agntshare-0.1.0.tar.gz 11.6 kB Without provenance Details for agntshare-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agntshare 0.1.0
File Interpreter ABI Platform Actions
agntshare-0.1.0-py3-none-any.whl Python 3 none any Details for agntshare-0.1.0-py3-none-any.whl

Total release size: 21.7 kB

Release files / agntshare-0.1.0.tar.gz

Download URL agntshare-0.1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3e55346ad357648a47a0d62db13c99ff0af53f30a8e30d0c6df223db4497427f
BLAKE2b-256 checksum
How to use checksums
83700c8946d5451297e3be0ab617991a175cad758418de701c86462318e1a56c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / agntshare-0.1.0-py3-none-any.whl

Download URL agntshare-0.1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c1247b28898113422e30e006e0477adcd0337655b99cecb13d419bfcc7ab0be
BLAKE2b-256 checksum
How to use checksums
34047205c850d2f8b3c2be5fef75748bb1ff87bf6befb0001014663b31a7352d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Security for agntshare 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page