
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@pathcourse/langchain
Advanced tools
LangChain.js integration for PathCourse Health — autonomous agent inference on Base L2
LangChain.js integration for PathCourse Health. Autonomous agent inference with USDC billing on Base L2 — no accounts, no credit cards, no KYC.
npm install @pathcourse/langchain
import { ChatPathCourse } from "@pathcourse/langchain";
import { ChatPromptTemplate } from "@langchain/core/prompts";
const llm = new ChatPathCourse({ model: "pch-fast" }); // set PCH_API_KEY env var
const prompt = ChatPromptTemplate.fromTemplate("Explain {topic} in one paragraph.");
const chain = prompt.pipe(llm);
const result = await chain.invoke({ topic: "autonomous agent billing" });
console.log(result.content);
// Before
import { ChatOpenAI } from "@langchain/openai";
const llm = new ChatOpenAI({ model: "gpt-4o-mini" });
// After
import { ChatPathCourse } from "@pathcourse/langchain";
const llm = new ChatPathCourse({ model: "pch-fast" });
Every LangChain chain, agent, tool, and memory module keeps working unchanged.
import { PathCourseEmbeddings } from "@pathcourse/langchain";
import { MemoryVectorStore } from "langchain/vectorstores/memory";
const embeddings = new PathCourseEmbeddings();
const store = await MemoryVectorStore.fromTexts(
["hello world", "goodbye world"],
[{}, {}],
embeddings,
);
const results = await store.similaritySearch("greeting");
| Model | Rate | Min tier | Notes |
|---|---|---|---|
pch-fast | $0.44 / M tokens | uncertified | Fast reasoning, classification, routing |
pch-coder | $3.50 / M tokens | uncertified | Code generation, debugging |
pch-embed | $0.015 / M tokens | uncertified | Text embeddings for semantic search / RAG |
pch-translate | $0.08 / M chars | uncertified | Multilingual translation |
pch-pro | $1.96 / M tokens | bronze | Deep reasoning, multi-step planning |
pch-audio | $1.85 / M chars | bronze | Text-to-speech, standard quality |
pch-documents | $0.26 in / $1.48 out per M tokens | bronze | Document parsing / OCR |
pch-transcribe | $0.0008 / minute | bronze | Speech-to-text |
pch-extract | $0.012 / M tokens | bronze | Structured data extraction |
pch-rerank | $0.025 / M tokens | bronze | Reranking for RAG pipelines |
pch-image | $0.028 / image | silver | Text-to-image |
pch-audio-premium | $37.00 / M chars | silver | Text-to-speech, premium quality |
pch-talk | $0.001 / minute | silver | Voice conversation |
claude-haiku | Common rate | silver | Anthropic Claude Haiku |
claude-sonnet | Common rate | gold | Anthropic Claude Sonnet |
The full list above shows what's reachable through the gateway. ChatPathCourse and PathCourseEmbeddings only operate on chat-completion and embedding shapes — for image, audio, transcription, etc., use the PCH JS SDK directly.
Choosing a chat model:
pch-fastpch-propch-coderclaude-sonnet (Gold tier)Set PCH_API_KEY in your environment, or pass pchApiKey to the constructor.
export PCH_API_KEY=pch_prod_b_...
Get an API key at pathcoursehealth.com.
MIT
FAQs
LangChain.js integration for PathCourse Health — autonomous agent inference on Base L2
The npm package @pathcourse/langchain receives a total of 7 weekly downloads. As such, @pathcourse/langchain popularity was classified as not popular.
We found that @pathcourse/langchain demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.