SDK
Python SDK Phase 3
The Python SDK is on the Phase 3 roadmap. For now, use the REST API directly or the TypeScript SDK. A LangChain integration is also planned.
Not yet available. The Python SDK ships in Phase 3 alongside LangChain integration. If you need Python support today, use the REST API directly — it's straightforward and documented fully in the API Reference.
REST API from Python
Until the SDK ships, the REST API works fine from Python:
python
import os
import httpx
API_KEY = os.environ["CLAWDGO_API_KEY"]
BASE_URL = "https://api.clawdgo.com/v1"
client = httpx.Client(
base_url=BASE_URL,
headers={"Authorization": f"Bearer {API_KEY}"},
)
# Provision an account
resp = client.post("/accounts", json={"name": "my-python-agent"})
account = resp.json()
print(account["account_id"])
# Send USDC
resp = client.post("/transfers", json={
"from": account["account_id"],
"to": "9xTz4KqR8mYvPn3SdFgHj6WbCeAuLo1XkQi5NtZpMwV",
"amount": "50.00",
"memo": "Task reward #88",
"idempotency_key": "task-88-reward",
})
transfer = resp.json()
print(transfer["tx_signature"])
Planned: LangChain tool
Phase 3 includes a LangChain-native ClawdGoTool for agents built on LangChain:
python
# Phase 3 — not yet available
from clawdgo.langchain import ClawdGoTool
tool = ClawdGoTool(
account_id=os.environ["CLAWDGO_ACCOUNT_ID"],
api_key=os.environ["CLAWDGO_API_KEY"],
)
agent = initialize_agent(
tools=[tool],
llm=ChatOpenAI(model="gpt-4o"),
agent=AgentType.OPENAI_FUNCTIONS,
)
Sign up for the Phase 3 waitlist on the roadmap page.