
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@cryptyx/langchain-tools
Advanced tools
LangChain tool wrappers for the CRYPTYX x402 API. Drop-in DynamicStructuredTool instances that any LangChain agent can bind — signals, factor scores, institutional trigger evaluation, natural-language query. Payment plumbing handled via @cryptyx/x402-clie
LangChain DynamicStructuredTool wrappers over the CRYPTYX x402 API. Bind institutional-grade crypto conviction to any LangChain agent in three lines.
npm install @cryptyx/langchain-tools @cryptyx/x402-client @cryptyx/tool-schemas @langchain/core
import { ChatOpenAI } from '@langchain/openai';
import { AgentExecutor, createOpenAIFunctionsAgent } from 'langchain/agents';
import { ChatPromptTemplate } from '@langchain/core/prompts';
import { Cryptyx } from '@cryptyx/x402-client';
import { cryptyxTools } from '@cryptyx/langchain-tools';
const cx = new Cryptyx({
wallet: process.env.WALLET_PRIVATE_KEY!,
network: 'base',
maxSpend: 2.0,
onPay: (r) => console.log(`Paid $${r.priceUsd} → ${r.route}`),
});
const tools = cryptyxTools(cx); // 15 LangChain tools ready
const prompt = ChatPromptTemplate.fromMessages([
['system', 'You are a crypto quant analyst. Use CRYPTYX tools to ground every claim in institutional evidence. Never recommend a trade without walk-forward-validated Sharpe > 0.3.'],
['placeholder', '{chat_history}'],
['human', '{input}'],
['placeholder', '{agent_scratchpad}'],
]);
const llm = new ChatOpenAI({ model: 'gpt-4o' });
const agent = await createOpenAIFunctionsAgent({ llm, tools, prompt });
const executor = new AgentExecutor({ agent, tools });
const result = await executor.invoke({
input: 'What is the strongest institutional-grade trigger firing on BTC or ETH right now, and should I act on it?',
});
console.log(result.output);
15 tools covering the canonical agent workflow. See @cryptyx/tool-schemas for the full catalog.
Bind only the tools you need:
import { cryptyxTool } from '@cryptyx/langchain-tools';
const tools = [
cryptyxTool(cx, 'get_agent_context'),
cryptyxTool(cx, 'get_trigger_preset'),
cryptyxTool(cx, 'get_asset_thesis'),
].filter(Boolean);
MIT.
FAQs
LangChain tool wrappers for the CRYPTYX x402 API. Drop-in DynamicStructuredTool instances that any LangChain agent can bind — signals, factor scores, institutional trigger evaluation, natural-language query. Payment plumbing handled via @cryptyx/x402-clie
We found that @cryptyx/langchain-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.