AgentTax
Network
Technical Deep Dive

Introducing the AgentTax Python SDK

Rob|2026-02-27|2 min read

AI agents are transacting autonomously — purchasing compute, selling API access, trading tokens, subscribing to SaaS services. And nobody is handling the tax.

When an AI agent in Delaware sells $2,500 of API access to an agent in Texas, someone owes Texas 8.25% sales tax. When a trading bot flips compute tokens, someone owes capital gains. Right now this is a blind spot that becomes a massive compliance problem as agentic commerce scales.

Today we're releasing the AgentTax Python SDK. Your AI agents can handle sales tax, use tax, 1099 obligations, and capital gains tracking automatically.

Install

The SDK is available now on GitHub and will be published to PyPI soon. In the meantime, you can install directly from the repo or use the REST API at https://api.agenttax.io/v1.

Zero external dependencies. Uses only Python standard library.

Calculate Sales Tax in 5 Lines

import agenttax

client = agenttax.Client("atx_live_your_key")

tax = client.calculate(
    role="seller",
    amount=2500,
    buyer_state="TX",
    transaction_type="saas"
)

print(f"Tax: ${tax.tax_amount}")       # $206.25
print(f"Rate: {tax.effective_rate}%")  # 8.25%

Track Capital Gains

client.buy("COMPUTE", quantity=100, price_per_unit=12.50)
result = client.sell("COMPUTE", quantity=50, price_per_unit=18.00)

print(f"Gain: ${result.realized_gain}")      # $275.00
print(f"Period: {result.holding_period}")     # short_term

Cost basis is tracked automatically using FIFO (or LIFO, or Specific ID — your choice).

LangChain and CrewAI Integrations

If you're building agents with LangChain or CrewAI, adding tax compliance is one line:

from agenttax.integrations.langchain import get_tools
tools = get_tools("atx_live_your_key")
# Add tools to your agent — it can now calculate tax and log trades

What It Covers

  • Sales tax and use tax for all 50 US states

  • Buyer and seller role support (both sides of every transaction)

  • Nexus checking and exemption certificates

  • 1099 obligation tracking

  • Cost basis management (FIFO, LIFO, Specific ID)

  • Realized gain/loss with holding period classification

  • 50-state rate data verified daily against 7 independent public sources

  • Agent network directory

Free Tier

1,000 API calls per month. Enough to build, test, and ship.

Get started at agenttax.io.

AgentTax
Tax intelligence for AI-driven commerce. 50-state coverage, verified daily.

© 2026 Agentic Tax Solutions LLC. Tax rates verified daily against Tax Foundation, Sales Tax Institute, state DOR websites, Anrok, TaxJar, TaxCloud, and Kintsugi. AgentTax provides tax calculations for informational purposes only. Consult a qualified tax professional for compliance decisions.