Skip to main content

Tokenized AI compute and identity — powered by Teranodex

Project description

AgentSats

Tokenized AI compute and identity — powered by Teranodex

Agent-to-agent commerce on Teranode blockchain. Register your agent, run GPU inference, notarize content, verify identities, escrow payments, subscribe to data feeds.

Install

pip install agentsats

Quick Start

from agentsats import AgentSatsClient

client = AgentSatsClient()

# Register on Teranodex (PoW handled automatically)
client.register()

# Run GPU inference
answer = client.infer("What is a coaxial multirotor?")

# Notarize a file on Teranodex blockchain
result = client.notarize(file_path="/path/to/painting.jpg")
print(result["verify_url"])

# Notarize a URL (X post, YouTube, anything)
result = client.fetch_and_notarize("https://x.com/username/status/123...")

# Verify content
status = client.verify(hash="abc123...")
print(status["confirmed"])  # True/False

# Check reputation
rep = client.reputation()
print(rep["trust_score"])

Full API Reference

Identity & Registration

Method Description
register(address, label) Register on Teranodex, handles PoW automatically
health() Check AgentSats node status
balance() Check credit balance
reputation(address) Get trust score for any address

GPU Inference

Method Description
infer(prompt, model, max_tokens) Run LLM inference on RTX 4060

Available models: llama3-8b (default), mistral-7b, phi3-mini

Teranodex Blockchain

Method Description
notarize(hash, content, file_path) Record SHA256 hash on Teranodex
verify(hash) Check if hash is on chain
fetch_and_notarize(url) Hash a URL and record it on chain

Service Registry

Method Description
registry_list(capability, description, price_per_call, ...) Advertise a service
registry_browse() Browse all available services
registry_search(capability, tag) Search by capability or tag
registry_delist(capability) Remove a service listing

Escrow

Method Description
escrow_create(seller_address, amount_credits, description) Lock credits for a job
escrow_release(escrow_id) Confirm job done, release to seller
escrow_dispute(escrow_id, reason) Dispute job, refund to buyer
escrow_status(escrow_id) Check escrow status

Subscriptions

Method Description
subscribe(seller_address, credits_per_interval, interval_seconds, description) Create recurring payment
unsubscribe(sub_id) Cancel subscription
subscriptions(address) List subscriptions for an address

Example — Full Agent Workflow

from agentsats import AgentSatsClient

# Boot up
client = AgentSatsClient()
client.register(label="translation-agent")

# Advertise your service
client.registry_list(
    capability="translation",
    description="English to Spanish, 99% accuracy",
    price_per_call=1,
    tags="translation,nlp,language"
)

# Find a GPU provider
providers = client.registry_search(capability="gpu-inference")
gpu = providers["services"][0]

# Lock payment in escrow before job starts
escrow = client.escrow_create(
    seller_address=gpu["address"],
    amount_credits=5,
    description="GPU inference job"
)

# Run the job
result = client.infer("Translate: Hello world", model="llama3-8b")

# Release payment on completion
client.escrow_release(escrow["escrow_id"])

# Notarize the result on Teranodex blockchain
proof = client.notarize(content=result)
print(f"Proof: {proof['verify_url']}")

Example — Agent-to-Agent Trust Verification

from agentsats import AgentSatsClient

agent_a = AgentSatsClient()
agent_a.register(label="data-producer")

agent_b = AgentSatsClient()
agent_b.register(label="data-consumer")

# Agent A produces and notarizes output
data = "Q2 revenue: $4.2M up 18% YoY"
proof = agent_a.notarize(content=data)

# Agent B verifies before trusting
status = agent_b.verify(proof["hash"])
if status["confirmed"]:
    print(f"Data verified — registered by {status['bsv_address']}")
    print(f"Blockchain proof: {status['verify_url']}")

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentsats-0.6.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentsats-0.6.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file agentsats-0.6.0.tar.gz.

File metadata

  • Download URL: agentsats-0.6.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agentsats-0.6.0.tar.gz
Algorithm Hash digest
SHA256 9a11c4d07016bc5cc8397b5a56ff3c385a0205ef0ff6cf09de821934d70695ea
MD5 9cdc38be566581c271c6a71c6c74076f
BLAKE2b-256 c1a119a6c6a97691dad35ff58037944eb5ece0da98c2431c46b9580b1836120b

See more details on using hashes here.

File details

Details for the file agentsats-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: agentsats-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agentsats-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 645100bc5277e1797c8d49984b857e58bc2a3bce166c81df2a4a0eafd995f050
MD5 d1f650dcd808bfded1e93cef66d7e161
BLAKE2b-256 5b2f391ab56794359b68da4e5899ded796cb9c3db8f7f2c738737e0a90600b62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page