goodfire package. This integration is a wrapper around the Goodfire SDK.
Overview
Integration details
| Class | Package | Local | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|---|
| ChatGoodfire | langchain-goodfire | ❌ | ❌ | ❌ |
Model features
| Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|---|
| ❌ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
Setup
To access Goodfire models you’ll need to create a/an Goodfire account, get an API key, and install thelangchain-goodfire integration package.
Credentials
Head to Goodfire Settings to sign up to Goodfire and generate an API key. Once you’ve done this set the GOODFIRE_API_KEY environment variable.Installation
The LangChain Goodfire integration lives in thelangchain-goodfire package:
Instantiation
Now we can instantiate our model object and generate chat completions:Invocation
Goodfire-specific functionality
To use Goodfire-specific functionality such as SAE features and variants, you can use thegoodfire package directly.
API reference
For detailed documentation of all ChatGoodfire features and configurations head to the API referenceConnect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.