Skip to main content

cracked-langchain

LangChain tools for Cracked, the tool router for AI agents: one API key, 67,000+ tools (web search, scrapers, social profiles, enrichment, media models) with measured health and real prices per call.

load_cracked_tools() turns every Cracked capability into a BaseTool with a typed args_schema built from GET /v1/capabilities/tools?format=openai. Runs go through POST /v1/run; each result includes the run permalink.

pip install cracked-langchain langchain-openai langgraph
import os
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from cracked_langchain import load_cracked_tools

tools = load_cracked_tools(api_key=os.environ["CRACKED_API_KEY"], capabilities=["web-search", "instagram-profile"])
agent = create_react_agent(ChatOpenAI(model="gpt-4o-mini"), tools)
result = agent.invoke({"messages": [("user", "How many followers does @nike have on Instagram?")]})
print(result["messages"][-1].content)
# Each tool call returns {"run": {"runId", "status", "url", "costUsd", "durationMs"}, "output": ...}

Options: capabilities (ids, dashes or underscores), set="top"|"all", base_url, timeout, max_output_chars. Keys: https://cracked.ai/app/keys. Agents can self-register: POST https://cracked.ai/v1/agents/register.

MIT.

Metadata

Release files for cracked-langchain 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 cracked-langchain 0.1.0
File Size Uploaded Provenance Actions
cracked_langchain-0.1.0.tar.gz 5.5 kB Without provenance Details for cracked_langchain-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.5 kB

Release files / cracked_langchain-0.1.0.tar.gz

Download URL cracked_langchain-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0dd53dfe6c89c6136519a01e6ca9527aaa4b362973dda681b65c08f483f276ba
BLAKE2b-256 checksum
How to use checksums
b0b0d0c60988cc5e6277716335165b1eaef7eb5838b9af4cadb511404c968a59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

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

Download URL cracked_langchain-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01a0c3d08a70789931f9ac7d51d294703ecee46f8918ed707b3acac3b37ef7d7
BLAKE2b-256 checksum
How to use checksums
d09e0146598969253393614277f2037bd618647e3549a676274b35cf42da052e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for cracked-langchain 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