[GH-ISSUE #120] Hardcode anthropic #29

Closed
opened 2026-02-16 06:16:54 -05:00 by yindo · 2 comments
Owner

Originally created by @ariran5 on GitHub (Jan 15, 2026).
Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/120

Originally assigned to: @christian-bromann on GitHub.

https://github.com/langchain-ai/deepagentsjs/blob/87409874278f5700f0276d083c1433baa813652b/examples/backends/filesystem-backend.ts#L30

Hi, i use openrouter and i cant use hardcoded values with requests to anthropic, maybe need make configurable this nodes ?

Originally created by @ariran5 on GitHub (Jan 15, 2026). Original GitHub issue: https://github.com/langchain-ai/deepagentsjs/issues/120 Originally assigned to: @christian-bromann on GitHub. https://github.com/langchain-ai/deepagentsjs/blob/87409874278f5700f0276d083c1433baa813652b/examples/backends/filesystem-backend.ts#L30 Hi, i use openrouter and i cant use hardcoded values with requests to anthropic, maybe need make configurable this nodes ?
yindo closed this issue 2026-02-16 06:16:54 -05:00
Author
Owner

@ariran5 commented on GitHub (Jan 15, 2026):

dependency "@langchain/anthropic": "^1.3.7" in package.json but used only in examples

@ariran5 commented on GitHub (Jan 15, 2026): dependency "@langchain/anthropic": "^1.3.7" in package.json but used only in examples
Author
Owner

@christian-bromann commented on GitHub (Jan 23, 2026):

You should be able to use OpenRouter with LangChain:

import { createDeepAgent } from "deepagents";
import { ChatOpenAI } from "@langchain/openai";
import { HumanMessage, SystemMessage } from "langchain";

const model = new ChatOpenAI(
  {
    model: '<model_name>',
    temperature: 0.8,
    streaming: true,
    apiKey: '${API_KEY_REF}', // OpenRouter API key
  },
  {
    baseURL: 'https://openrouter.ai/api/v1'
  },
);

const agent = createDeepAgent({
  model,
  systemPrompt,
  // ...
});

Let me know if you have further quesitons.

@christian-bromann commented on GitHub (Jan 23, 2026): You should be able to use OpenRouter with LangChain: ```ts import { createDeepAgent } from "deepagents"; import { ChatOpenAI } from "@langchain/openai"; import { HumanMessage, SystemMessage } from "langchain"; const model = new ChatOpenAI( { model: '<model_name>', temperature: 0.8, streaming: true, apiKey: '${API_KEY_REF}', // OpenRouter API key }, { baseURL: 'https://openrouter.ai/api/v1' }, ); const agent = createDeepAgent({ model, systemPrompt, // ... }); ``` Let me know if you have further quesitons.
yindo changed title from Hardcode anthropic to [GH-ISSUE #120] Hardcode anthropic 2026-06-05 17:21:04 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#29