Close Menu
ToolTechBlogToolTechBlog

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    OpenAI employee who secretly recorded meetings allegedly affiliated with the Saudi government

    November 24, 2026

    How to save your Google Nest app videos before the January shutdown

    November 24, 2026

    Claude can ship code for you now – how to try it (if you dare)

    November 24, 2026
    Facebook X (Twitter) Instagram
    ToolTechBlogToolTechBlog
    • Home
    • AI Tools
    • Web Hosting
    • Tech
    • Digital Marketing
    • Business Software
    • VPN & Cybersecurity
    ToolTechBlogToolTechBlog
    Home»Web Hosting»Self-Hosted LangSmith Alternatives: 4 Tools Tested on One TypeScript Agent
    Web Hosting

    Self-Hosted LangSmith Alternatives: 4 Tools Tested on One TypeScript Agent

    Tool Tech TeamBy Tool Tech TeamNovember 8, 2026No Comments25 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    Self-Hosted LangSmith Alternatives: 4 Tools Tested on One TypeScript Agent
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email

    Community Article
    Community articles are authored by SitePoint Premium contributors. Content is screened before publication, and SitePoint reserves the right to moderate or remove articles that violate our guidelines. Views expressed are those of the authors and do not necessarily reflect those of SitePoint.

    Self-Hosted LangSmith Alternatives: 4 Tools Tested on One TypeScript Agent

    TATalha AnwarPublished inAI·
    November 5, 2026
    ·Updated:November 7, 2026

    The AI briefing for Developers

    Stay up to date with AI tools, model releases, and developer workflows that matter.

    Weekly. Free. One click to leave.

    SitePoint Premium
    Stay Relevant and Grow Your Career in Tech

    • Premium Results
    • Publish articles on SitePoint
    • Daily curated jobs
    • Learning Paths
    • Discounts to dev tools

    7 Day Free Trial. Cancel Anytime.

    LangSmith is closed-source and restricts self-hosting to enterprise licenses, teams that run their own LLMOps stack and want to keep traces on their own servers need an alternative. To find the best fit, we set a baseline by tracing a small TypeScript agent (equipped with two tools) in LangSmith Cloud. Then, we ran the exact same agent through Langfuse, Arize Phoenix, Opik, and AcruxCore using each platform’s recommended TypeScript setup. All tests were run on November 5, 2026, and we pulled every trace back through each tool’s API to verify the data.

    At a Glance

    All four alternatives successfully recreated LangSmith’s trace tree for the test prompt: a single agent span containing three LLM calls and two tool calls. The real differences between them come down to how much boilerplate code you have to write, how spans are typed, whether costs are tracked, and the overall server footprint.

    ToolLicenseSelf-host footprint*TypeScript pathBest for
    LangSmithClosed sourceCloud only in this testlangsmith: wrapOpenAI + traceableThe baseline: teams fine with a closed-source cloud service
    LangfuseMIT (core)6 containers, 2.60–2.64 GiB idle@langfuse/openai + @langfuse/tracing on the OTel Node SDKA project price table with an API, if you can run ClickHouse
    Arize PhoenixElastic License 2.02 containers, 0.47 GiB idle@arizeai/phoenix-otel + OpenInference helpersA small server with the full LLM response on each span
    OpikApache-2.08 containers, 3.69 GiB idleopik-openai + opikAn Apache-2.0 stack with a token sum on the trace and full error tracebacks, if you can run ClickHouse and MySQL
    AcruxCoreApache-2.05 containers, 0.39 GiB idle@acruxcoreai/sdk step helpers + openai client via the gatewayA small server on Postgres and Redis with tool catalog, audit trail and gateway.

    Why Teams Look for a LangSmith Alternative

    • Data Privacy & Hosting:Self-hosting requires an Enterprise license. Otherwise, sensitive trace data (prompts, user messages, tool arguments) must go to LangChain’s US or EU cloud, which violates many compliance policies.
    • Per-Seat Costs:LangSmith charges per user, making it expensive as teams grow. Self-hosted alternatives shift this to flat infrastructure costs (ranging from 0.5 GiB to 4 GiB of idle memory).
    • Framework Friction: It is heavily optimized for LangChain and LangGraph. Tracing custom loops (like a plain openai SDK implementation) requires manual span wrapping to prevent disconnected, fragmented trace trees.

    LangSmith remains the best choice if you already use LangChain and allow cloud hosting—it required just 25 lines of code in our test. The alternatives below are for teams that don’t fit that profile.

    How We Tested

    To test these platforms, we built a simple customer support agent equipped with two tools:

    • get_order_status: Returns a specific, fixed order record.
    • get_refund_policy: Returns the refund window for a given plan.

    Both tools use static fixture data to ensure every test run is identical. The agent runs a standard loop: it prompts the model, executes any requested tools, and stops once the model provides a final answer.

    We tested the agent with three specific prompts to see how the tracing handled different levels of complexity:

    • A basic question: Requires no tool calls.
    • An order check: Requires only get_order_status.
    • A complex inquiry:“Order A-1042: can I still get a refund?” This requires the agent to use both tools in sequence.

    For our comparison, we focused entirely on the third question because it generates a robust, multi-step trace.

    Under the hood, the agent uses the standard openai package to call the qwen3.8-flash model. We originally picked this model based on its reliable tool-calling behavior during early probing thought it once skipped a tool call later.

    The rules we followed

    We used LangSmith as our baseline. By tracing the agent there first, we created a checklist of every field it captured, and we judged all the alternatives against that exact list.

    For setup, we followed the recommended TypeScript approach from each tool’s documentation. Phoenix didn’t have specific instructions for using its register() helper with OpenAI in TypeScript, so we adapted the pattern from their Anthropic guide.

    Test setup

    ItemValue
    Date5 November 2026
    MachineLinux, 62 GiB of memory, Docker 29.9.2
    PrerequisitesNode.js 20.12 or later (the scripts use process.loadEnvFile), Docker for the self-hosted servers, any OpenAI-compatible key, a LangSmith account
    AgentTypeScript, openai 7.51.0, model qwen3.8-flash on an OpenAI-compatible endpoint
    LangSmithCloud, EU region; langsmith 0.11.8
    LangfuseServer 4.5.0 (langfuse/langfuse:4 image); @langfuse/* 6.1.1; @opentelemetry/sdk-node 0.223.0
    PhoenixServer 19.18.0; @arizeai/phoenix-otel 2.3.0; @arizeai/openinference-instrumentation-openai 4.4.3; @arizeai/openinference-core 2.8.1
    OpikServer 2.2.52; opik-openai 2.2.142 with opik 1.11.14
    AcruxCoreLocal build from 2026-09-17; @acruxcoreai/sdk 0.20.0
    Instrumentation costgit diff --no-index --numstat run-plain.ts trace-<tool>.ts

    All five SDKs shared one package.json.

    The plain agent

    Here is the agent with no tracing. Each tool section adds one tracing file that imports these files and changes nothing in them.

    import OpenAI from"openai";exportconstMODEL="qwen3.8-flash";constBASE_URL="";exportfunctionmakeClient(): OpenAI {returnnewOpenAI({baseURL:BASE_URL,apiKey: process.env.OPENCODE_KEY,defaultHeaders:{"x-opencode-session": crypto.randomUUID()},});}
    const orders: Record<string,{ status:string; delivered_days_ago:number; plan:string}>={"A-1042":{ status:"delivered", delivered_days_ago:12, plan:"standard"},};const refundWindows: Record<string,number>={ standard:30, premium:60};exportfunctionget_order_status(args:{ order_id:string}){return orders[args.order_id]??{ error:"order not found"};}exportfunctionget_refund_policy(args:{ plan:string}){const days = refundWindows[args.plan];return days ?{ plan: args.plan, refund_window_days: days }:{ error:"unknown plan"};}exportconst toolImplementations ={ get_order_status, get_refund_policy };exportconst toolDefinitions =[{type:"function"asconst,function:{name:"get_order_status",description:"Look up an order by id. Returns its status, how many days ago it was delivered, and the customer's plan.",parameters:{type:"object",properties:{ order_id:{ type:"string", description:"Order id, for example A-1042"}},required:["order_id"],},},},{type:"function"asconst,function:{name:"get_refund_policy",description:"Get the refund window in days for a plan name. Use the plan returned by get_order_status.",parameters:{type:"object",properties:{ plan:{ type:"string", description:"Plan name, for example standard"}},required:["plan"],},},},];
    importtypeOpenAIfrom"openai";import{MODEL, makeClient }from"./provider.js";import{ toolDefinitions, toolImplementations }from"./tools.js";constSYSTEM="You are a support assistant. Keep every answer under three sentences. Answer general questions directly without tools. "+"For questions about an order, call get_order_status first. For refund questions, "+"also call get_refund_policy with the order's plan. Call each tool at most once, one at a time.";constMAX_STEPS=6;exportinterfaceAgentResult{answer:string;toolCalls:string[];}exportasyncfunctionrunAgent(question:string,client: OpenAI =makeClient(),tools: Record<string,(args:any)=>unknown>= toolImplementations,):Promise<AgentResult>{const messages: OpenAI.Chat.ChatCompletionMessageParam[]=[{ role:"system", content:SYSTEM},{ role:"user", content: question },];const toolCalls:string[]=[];for(let step =0; step <MAX_STEPS; step++){const res =await client.chat.completions.create({ model:MODEL, messages, tools: toolDefinitions });const msg = res.choices[0].message;messages.push(msg);if(!msg.tool_calls?.length)return{ answer: msg.content ??"", toolCalls };for(const call of msg.tool_calls){if(call.type !=="function")continue;toolCalls.push(call.function.name);const result = tools[call.function.name](JSON.parse(call.function.arguments));messages.push({ role:"tool", tool_call_id: call.id, content:JSON.stringify(result)});}}return{ answer:"(stopped: too many steps)", toolCalls };}
    exportconst questions =[{ text:"What does a refund policy usually mean?", expectedTools:[]asstring[]},{ text:"What is the status of order A-1042?", expectedTools:["get_order_status"]},{ text:"Order A-1042: can I still get a refund?", expectedTools:["get_order_status","get_refund_policy"]},];

    run-plain.ts runs all three questions:

    import{ existsSync }from"node:fs";import{ runAgent }from"./agent.js";import{ questions }from"./questions.js";const envFile =newURL("../../../.env",import.meta.url);if(!process.env.OPENCODE_KEY&&existsSync(envFile)) process.loadEnvFile(envFile);for(const q of questions){const{ answer, toolCalls }=awaitrunAgent(q.text);const ok =JSON.stringify(toolCalls)===JSON.stringify(q.expectedTools);console.log(`Q:${q.text}nA:${answer}nTools:${toolCalls.join(" -> ")||"none"}(${ok ?"as expected":"UNEXPECTED"})n`);}
    Q:What does a refund policy usually mean?A:A refund policy states the conditions under which a company will return a customer’s money.It usually covers time limits, eligible items or services, and how refunds are issued.Tools:none(as expected)Q:What is the status of order A-1042?A:OrderA-1042 has been delivered.It was delivered 12 days ago, and the customer is on the standard plan.Tools:get_order_status(as expected)Q:OrderA-1042: can I still get a refund?A:Yes.OrderA-1042 was delivered 12 days ago, and the Standard plan has a 30-day refund window, so you can still request a refund.Tools: get_order_status ->get_refund_policy(as expected)

    What LangSmith’s Trace Shows

    LangSmith traces the plain openai package with two helpers. wrapOpenAI records each model call, and traceable records your own functions. Without traceable on the run and the tools, wrapOpenAI alone gave three separate root runs and no tool runs.

    import{ existsSync }from"node:fs";import{ traceable }from"langsmith/traceable";import{ wrapOpenAI }from"langsmith/wrappers";import{ Client }from"langsmith";import{ runAgent }from"./agent.js";import{ makeClient }from"./provider.js";import{ questions }from"./questions.js";import{ toolImplementations }from"./tools.js";const envFile =newURL("../../../.env",import.meta.url);if(!process.env.OPENCODE_KEY&&existsSync(envFile)) process.loadEnvFile(envFile);process.env.LANGSMITH_TRACING="true";process.env.LANGSMITH_PROJECT??="langsmith-alternatives-test";const ls =newClient();const tracedTools = Object.fromEntries(Object.entries(toolImplementations).map(([name, fn])=>[name,traceable(fn,{ name, run_type:"tool", client: ls }),]),);const tracedAgent =traceable((q:string)=>runAgent(q,wrapOpenAI(makeClient(),{ client: ls }), tracedTools),{ name:"support-agent", run_type:"chain", client: ls },);for(const q of questions){const{ answer, toolCalls }=awaittracedAgent(q.text);const ok =JSON.stringify(toolCalls)===JSON.stringify(q.expectedTools);const tools = toolCalls.join(" -> ")||"none";const verdict = ok ?"as expected":"UNEXPECTED";console.log(`Q:${q.text}nA:${answer}nTools:${tools}(${verdict})n`);}await ls.awaitPendingTraceBatches();

    This file adds 25 lines and removes 3, and installs one package.

    LangSmith showed one root run with five children in call order: LLM, get_order_status, LLM, get_refund_policy, LLM. Every field it recorded became a row of the checklist table under “Results”. Cost appeared only after a custom price entry. In our error run the failing tool was marked as an error, but the root stayed success: traceable turned the throw into a rejected promise that our agent did not await, so the agent carried on and answered.

    Langfuse

    Langfuse self-hosts as six containers, including ClickHouse, a column store built for large scans. In our measurement the stack held 2.60–2.64 GiB of memory at idle. Its Docker Compose guide recommends at least 4 CPU cores and 16 GiB RAM, with about 100 GiB of disk.

    The TypeScript path is built on OpenTelemetry. You start the OTel Node SDK with LangfuseSpanProcessor, wrap the client with observeOpenAI, and wrap your own functions with observe:

    import{ existsSync }from"node:fs";import{ NodeSDK }from"@opentelemetry/sdk-node";import{ LangfuseSpanProcessor }from"@langfuse/otel";import{ observe }from"@langfuse/tracing";import{ observeOpenAI }from"@langfuse/openai";import{ runAgent }from"./agent.js";import{ makeClient }from"./provider.js";import{ questions }from"./questions.js";import{ toolImplementations }from"./tools.js";for(const f of[".env.local","../../../.env"]){const url =newURL(f,import.meta.url);if(existsSync(url)) process.loadEnvFile(url);}const processor =newLangfuseSpanProcessor();newNodeSDK({ spanProcessors:[processor]}).start();const tracedTools = Object.fromEntries(Object.entries(toolImplementations).map(([name, fn])=>[name,observe(fn,{ name, asType:"tool"}),]),);const tracedAgent =observe((q:string)=>runAgent(q,observeOpenAI(makeClient()), tracedTools),{ name:"support-agent", asType:"agent"},);for(const q of questions){const{ answer, toolCalls }=awaittracedAgent(q.text);const ok =JSON.stringify(toolCalls)===JSON.stringify(q.expectedTools);const tools = toolCalls.join(" -> ")||"none";const verdict = ok ?"as expected":"UNEXPECTED";console.log(`Q:${q.text}nA:${answer}nTools:${tools}(${verdict})n`);}await processor.forceFlush();

    This file adds 31 lines and removes 5, and installs four packages. We pinned the OTel Node SDK to 0.223.0, because @langfuse/otel 6.1.1 does not accept 0.300.0.

    Langfuse successfully recreated the same trace tree, neatly tagging the spans as AGENT, GENERATION, and TOOL. It captured all the essentials: tool calls, tool definitions, and the complete message history. However, for the LLM output, it only saved the assistant’s message—dropping the finish_reason, response ID, and the provider name.

    We ran our deployment in Langfuse v4’s events_only mode, which turns off the v1 trace endpoint. Because of this, the API didn’t return a centralized trace object or root-level sums for tokens and costs, even though the UI calculated and displayed them perfectly (we didn’t test other modes).

    Costs showed up exactly as expected once we added a custom price entry. Since Langfuse calculates prices based on the specific usage types you define, and we only set rates for input and output, the separate reasoning tokens went unpriced. Finally, during our error test, the observe wrapper let the error bubble up to the agent, correctly flagging both the tool and the root span as an ERROR.

    Strengths and Limitations

    • Familiar Structure: Its span tags (AGENT, GENERATION, TOOL) map exactly to LangSmith’s, making it very easy to read your traces after migrating. (Phoenix and AcruxCore do this as well.)
    • Top-Tier Cost Setup: It handled custom pricing better than the rest. You can set project-level prices using regex rules, and easily update them via the UI or a quick API call—perfect for scripting.
    • Heavy Infrastructure: It requires serious server resources. It runs on six containers (including ClickHouse) and hovered around 2.6 GiB of memory at idle, making it the second heaviest tool behind Opik.
    • Thinner Trace Data: It captures slightly less raw detail than Phoenix or AcruxCore. The LLM output only saves the assistant message, the provider name is missing, and in events_only mode, the API doesn’t return root-level token or cost totals (even though the UI calculates them).
    • Pricing Quirk: Reasoning tokens are treated as a completely separate usage type. If you only configure prices for standard inputs and outputs, reasoning tokens will be left unpriced.
    • Dependency Headaches: The TypeScript setup relies on OpenTelemetry, but we had to pin OTel to version 0.223.0 because Langfuse’s exporter (v6.1.1) wouldn’t accept the newer 0.300.0 release.

    Arize Phoenix

    Phoenix self-hosts as two containers, one Python server and Postgres. In our measurement it held 0.47 GiB at idle. Phoenix is

    The TypeScript path uses Phoenix’s register() helper and the OpenInference instrumentation for the OpenAI package. OpenInference is a set of OpenTelemetry attribute names for LLM spans. traceAgent and traceTool wrap the run and the tools:

    import{ existsSync }from"node:fs";import OpenAI from"openai";import{ register }from"@arizeai/phoenix-otel";import{ OpenAIInstrumentation }from"@arizeai/openinference-instrumentation-openai";import{ traceAgent, traceTool }from"@arizeai/openinference-core";import{ runAgent }from"./agent.js";import{ makeClient }from"./provider.js";import{ questions }from"./questions.js";import{ toolImplementations }from"./tools.js";const envFile =newURL("../../../.env",import.meta.url);if(!process.env.OPENCODE_KEY&&existsSync(envFile)) process.loadEnvFile(envFile);const provider =register({projectName:"langsmith-alternatives-test",url:"http://localhost:6006",});newOpenAIInstrumentation().manuallyInstrument(OpenAI);const tracedTools = Object.fromEntries(Object.entries(toolImplementations).map(([name, fn])=>[name,traceTool(fn,{ name }),]),);const tracedAgent =traceAgent((q:string)=>runAgent(q,makeClient(), tracedTools),{ name:"support-agent"},);for(const q of questions){const{ answer, toolCalls }=awaittracedAgent(q.text);const ok =JSON.stringify(toolCalls)===JSON.stringify(q.expectedTools);const tools = toolCalls.join(" -> ")||"none";const verdict = ok ?"as expected":"UNEXPECTED";console.log(`Q:${q.text}nA:${answer}nTools:${tools}(${verdict})n`);}await provider.shutdown();

    This file adds 32 lines and removes 3, and installs three packages.

    Phoenix rebuilt the same tree, typed as AGENT, LLM and TOOL. Each LLM span keeps the full OpenAI response object, plus the messages as flattened attributes. The root span stores no token count, but Phoenix computes a sum for the root and the trace when you read it. Cost and those sums are only in the GraphQL API and the UI, and the REST API has no per-trace endpoint.

    Cost appeared after a custom price entry under Settings > Models, and Phoenix priced the reasoning tokens by falling back to the output price. In the error run, the tool span and the root were marked ERROR, and the tool span carried an exception event with the stack trace.

    • Lightweight Setup: It had the second-smallest footprint, running on just two containers (Python and Postgres) and drawing only 0.47 GiB at idle. No ClickHouse required.
    • Deepest Trace Detail: It captured the richest data of the group, saving the complete OpenAI response object and attaching full stack traces to errors.
    • Smart Token Pricing: It automatically applies standard output prices to reasoning tokens, so you don’t need to configure them separately.
    • Licensing & Security: Keep in mind it uses the Elastic License 2.0 (source-available, not strictly open-source). Also, authentication is turned off by default.
    • API Friction: Pulling data programmatically is clunky. The REST API lacks a per-trace endpoint, meaning you must use GraphQL to get token and cost totals. The price table is also UI-only.
    • Documentation Gap: There were no TypeScript instructions for using the register() helper with OpenAI, so we had to adapt their Anthropic guide.
    • OpenTelemetry Native: The register() method sends data over standard OTLP directly to Phoenix.

    Opik self-hosts as eight containers, including ClickHouse, MySQL and ZooKeeper. In our measurement it held 3.69 GiB at idle, the most of the four. The self-hosted UI opened without a login, so every trace was readable from any machine that could reach the port.

    The TypeScript path wraps the client with trackOpenAI and your own functions with track. By default trackOpenAI starts a new trace for every model call, so the file passes the run’s span through the documentedparent option:

    import{ existsSync }from"node:fs";import{ track, flushAll, getTrackContext }from"opik";import{ trackOpenAI }from"opik-openai";import{ runAgent }from"./agent.js";import{ makeClient }from"./provider.js";import{ questions }from"./questions.js";import{ toolImplementations }from"./tools.js";for(const f of[".env.local","../../../.env"]){const url =newURL(f,import.meta.url);if(existsSync(url)) process.loadEnvFile(url);}process.env.OPIK_PROJECT_NAME??="langsmith-alternatives-test";const tracedTools = Object.fromEntries(Object.entries(toolImplementations).map(([name, fn])=>[name,track({ name, type:"tool"}, fn),]),);const tracedAgent =track({ name:"support-agent", type:"general"},(q:string)=>runAgent(q,trackOpenAI(makeClient(),{ parent:getTrackContext()?.span }),tracedTools,),);for(const q of questions){const{ answer, toolCalls }=awaittracedAgent(q.text);const ok =JSON.stringify(toolCalls)===JSON.stringify(q.expectedTools);const tools = toolCalls.join(" -> ")||"none";const verdict = ok ?"as expected":"UNEXPECTED";console.log(`Q:${q.text}nA:${answer}nTools:${tools}(${verdict})n`);}awaitflushAll();

    This file adds 33 lines and removes 5. It installs opik-openai 2.2.142, and npm adds opik 1.11.14 as its peer, because opik-openai asks for opik ^1.8.61.

    Opik successfully recreated the trace tree, and its trace object neatly tallies token counts across all LLM spans. In the logs, tool arguments are bundled into an array, and the LLM output only retains the assistant’s message.

    We did notice a quirk with the documented OpenAI wrapper (tested on the npm package opik 1.11.14): it tags model calls as general rather than llm, which incorrectly leaves the llm_span_count at zero. (We didn’t test newer Opik core versions to see if this has changed). Additionally, because our synchronous tools execute in under a millisecond, they log the exact same start time as the subsequent LLM call, causing the UI to list the LLM call first out of order.

    Cost tracking is entirely manual. Opik showed no costs by default, and the documentation doesn’t mention a custom price table. We checked the configuration tabs on our 2.2.52 instance (Feedback definitions, AI Providers, Workspace preferences) and found no model pricing settings. To see costs, you have to manually assign a price to each individual span yourself—only the spans we hardcoded this way displayed a cost.

    Finally, error reporting is highly detailed. If something fails, Opik attaches an error_info block—complete with the error type, message, and full traceback—directly to the tool span, the root span, and the overall trace.

    • True Open-Source & Rich Traces:Licensed under Apache-2.0 (like AcruxCore). It delivers the most complete trace object—including token sums, span counts, and tool flags—making it incredibly easy to filter traces directly from your code.
    • Comprehensive Error Logging: It captures the best error records of the group. You get the error type, message, and full traceback, which are logged across the tool span, the root span, and the overall trace.
    • Heavy & Unsecured: It has the largest server footprint by far, running eight containers and pulling 3.69 GiB at idle. Furthermore, the self-hosted version lacks authentication entirely—anyone with port access can read your data.
    • Finicky OpenAI Wrapper: By default, trackOpenAI spawns a disconnected, separate trace for every model call unless you explicitly pass the parent option. It also tags calls as general rather than llm (Opik’s cost docs tie cost to llm spans, so this may block automatic costing), and because there is no central price table, you have to manually set costs on every span.
    • UI Sorting Quirks: Spans that start in the exact same millisecond can appear out of order in the dashboard.

    AcruxCore

    AcruxCore self-hosts as five containers: Postgres, Redis, a Node API and worker, and nginx. In our measurement it held 0.39 GiB at idle, the least of the four. Its quickstart leaves sign-up open and ships a committed default GATEWAY_ENCRYPTION_KEY, which encrypts stored provider keys; replace it. We tested a local build from 2026-09-17.

    The TypeScript path AcruxCore’s docs put first is its gateway. The official openai client keeps working: you point its baseURL at ACRUXCORE_BASE_URL + "/gateway" and call a model registered in AcruxCore, which forwards each call to an OpenAI-compatible provider. The gateway records every model call as an llm span. The SDK’s step helpers add the rest: traces.step opens the agent span, traces.wrap wraps each tool, and two headers file the gateway’s spans under the agent span:

    import{ existsSync }from"node:fs";import OpenAI from"openai";import AcruxCore from"@acruxcoreai/sdk";import{ runAgent }from"./agent.js";import{ questions }from"./questions.js";import{ toolImplementations }from"./tools.js";for(const f of[".env.local","../../../.env"]){const url =newURL(f,import.meta.url);if(existsSync(url)) process.loadEnvFile(url);}const hub =newAcruxCore();const tracedTools = Object.fromEntries(Object.entries(toolImplementations).map(([name, fn])=>[name, hub.traces.wrap(name,{ kind:"tool"}, fn as(a:unknown)=>unknown)]),);consttracedAgent=(q:string)=>hub.traces.step("support-agent",{ kind:"agent", input: q },(step)=>{const client =newOpenAI({baseURL: process.env.ACRUXCORE_BASE_URL+"/gateway",apiKey: process.env.ACRUXCORE_GATEWAY_KEY,defaultHeaders:{"x-trace-id": step.traceId,"x-parent-span-id": step.spanId },});returnrunAgent(q, client, tracedTools);});for(const q of questions){const{ answer, toolCalls }=awaittracedAgent(q.text);const ok =JSON.stringify(toolCalls)===JSON.stringify(q.expectedTools);const tools = toolCalls.join(" -> ")||"none";const verdict = ok ?"as expected":"UNEXPECTED";console.log(`Q:${q.text}nA:${answer}nTools:${tools}(${verdict})n`);}await hub.traces.flush();

    This file adds 30 lines and removes 5, and installs one package. It builds its own client, so it does not use provider.ts. The gateway refused our team API key, so the client uses a gateway virtual key created in the dashboard.

    On this path every model call passes through the AcruxCore server, which none of the other four tools need. If you do not want a proxy in the request path, the SDK’s register() helper sends OpenTelemetry spans from your process instead. On that path the step helpers do not join the openai package’s spans, so you write the agent and tool spans by hand.

    AcruxCore rebuilt the same tree, typed as agent, llm and tool, in call order. Each LLM span keeps the full response, the provider and the cached-token count, and the trace carries a token total. The LLM spans do not keep the tool definitions sent to the model, and no reasoning-token count was recorded. The trace took its name from the question, not from the agent span, and each LLM span is named by its start time.

    Cost appeared on every LLM span and as a sum on the trace, from the custom price we set on the model in AcruxCore’s model list. In the error run, the step helpers marked the tool span and the agent root as error with the error message, with no status code of ours. The API returned no stack trace.

    • Smallest Server: AcruxCore runs as five containers on Postgres and Redis, with no ClickHouse. It held 0.39 GiB at idle in our October measurement, the least of the four.
    • Least Tracing Code: Through the gateway, the file added 30 lines and one package, the fewest of the self-hosted tools (LangSmith needed 25).
    • Cost Without Extra Code: With a price set on the gateway model, every LLM span showed a cost and the trace showed the total. Failing tools and errors marked in traces automatically.
    • Tool Catalog With Versions: Outside the tracing itself, AcruxCore keeps a tool catalog in the dashboard. Each tool has numbered versions, and a prompt can bind a specific tool version.
    • Audit Trail Included: Any time someone changes prompts, tools, keys, members, gateway settings, or secrets, the system logs exactly who did it. Owners and admins can filter these records in the dashboard. This feature is included in the Apache-2.0 self-hosted build.
    • A Gateway in the Request Path: This is a trade-off. Each model call takes one extra network hop, and if the AcruxCore server is down, model calls fail too, not only tracing. In return you get budgets, fallbacks and caching on every call. LangSmith and Langfuse offer gateways as well, both in beta. If you need direct calls, the register() OpenTelemetry path keeps them, but you write the agent and tool spans by hand.
    • Early-Stage Project: The UI carries a BETA badge, and the community is smaller than the other three.

    One OpenTelemetry Exporter, Any Backend

    All five tools accept traces over OTLP, the OpenTelemetry wire format. trace-otel.ts sends the same spans with no vendor package: the OTel Node SDK, the OTLP/HTTP protobuf exporter and the OpenInference OpenAI instrumentation. The exporter reads its endpoint and headers from environment variables:

    const exporter =newOTLPTraceExporter();const sdk =newNodeSDK({ traceExporter: exporter });sdk.start();newOpenAIInstrumentation().manuallyInstrument(OpenAI);

    We ran the two-tool question once per backend and changed only environment variables: the endpoint, the headers, and for Phoenix a reo a default project). “Accepted” means the exporter reported success, which it does only for an HTTP 2xx, and we read the spans back through each API

    LangSmithLangfusePhoenixOpikAcruxCore
    Spans acceptedYesYesYesYesYes
    Tree: root and 5 childrenYesYesYesYesYes
    Root span typechainAGENTAGENTgeneralagent
    LLM spans recognisedYesYesYesYes, type llm; provider emptyYes
    Tool spans recognisedYesYesYesNo: stored as generalYes
    Settings beyond authLangsmith-Project headerx-langfuse-ingestion-version=4 headerOTEL_RESOURCE_ATTRIBUTES for the project nameprojectName, Comet-Workspace headersNone
    Cost shown in tracesYes, with the custom price entered earlierYes, with the custom priceYes, with the custom priceNo price table in the docs or the Configuration tabs we openedNo

    Opik stored the root and tool spans as general although AGENT and TOOL kinds were sent; the cause is Not tested. LangSmith mapped AGENT to its chain type. If you instrument with plain OTel and OpenInference attributes, your raw spans are not tied to one vendor, but span types, cost and trace views still differ by backend.

    Results

    The first table covers setup: how much server each tool needs, how much code we changed in the agent, and how cost and the plain OTel exporter worked. Phoenix and AcruxCore had the smallest servers, and AcruxCore needed the fewest lines among the self-hosted tools. Opik was the only one without a price table.

    LangSmithLangfusePhoenixOpikAcruxCore
    Self-host footprintNot self-hosted in this test6 containers, 2.60–2.64 GiB idle; ClickHouse2 containers, 0.47 GiB idle; Postgres8 containers, 3.69 GiB idle; ClickHouse and MySQL5 containers, 0.39 GiB idle; Postgres and Redis
    Lines added / removed25 / 3: two wrappers31 / 5: OTel SDK start plus two wrappers32 / 3: register() plus OpenInference helpers33 / 5: two wrappers plus the parent option30 / 5: gateway baseURL, an agent step and wrapped tools
    Packages1: langsmith4: @langfuse/tracing, @langfuse/otel, @langfuse/openai, @opentelemetry/sdk-node3: @arizeai/phoenix-otel, @arizeai/openinference-instrumentation-openai, @arizeai/openinference-core2: opik-openai and its peer opik1: @acruxcoreai/sdk
    CostAfter a custom price entryAfter a custom price entry, per usage type (we priced input and output only)After a custom price entry; reasoning priced by falling back to the output priceNo price table in the docs or the Configuration tabs we opened; cost set per span by the callerAfter a custom price on the gateway model; summed on the trace
    Plain OTel exporterAccepted, with a project headerAccepted, with an ingestion-version headerAccepted, with a project resource attributeAccepted, with project and workspace headers; tool spans stored as generalAccepted

    The second table checks each trace against what LangSmith recorded for the same run, one field at a time. All five rebuilt the same tree with tokens and durations. They differ in span types, how much of the LLM output they keep, where token sums live, and how much detail they store for the failing tool.

    Field (LangSmith checklist)LangSmithLangfusePhoenixOpikAcruxCore
    Root with LLM and tool childrenYesYesYesYes; tied spans listed out of orderYes
    Span typeschain, llm, toolAGENT, GENERATION, TOOLAGENT, LLM, TOOLgeneral for root and LLM calls (OpenAI wrapper; llm over OTel), tool for toolsagent, llm, tool
    Tool name, arguments, resultYesYesYesYes; arguments wrapped in an arrayYes; arguments wrapped in an array
    Tool definitions on the LLM spanYesYesYesYesNo (stored in tool catalog)
    LLM outputFull responseAssistant message onlyFull responseAssistant message onlyFull response
    Tokens per LLM callYesYesYesYesYes
    Token sum for the traceOn the root runNo in the API on our events_only deployment; summed in the UIComputed on read (GraphQL, UI)On the trace objectOn the trace object
    Reasoning tokensSeparate fieldSeparate usage typeAttribute, used in cost detailsInside the raw usageNot recorded
    CostAfter a price entryAfter a price entryAfter a price entrySet per span by the callerAfter a price entry
    Per-step durationYesYesYesYesYes
    Error on the failing toolStatus and message; root stayed success (our agent did not await the tool)Level and message; root ERRORStatus, message, exception eventType, message, tracebackStatus and message on the tool and root, from the step helpers; no stack trace
    Provideropenai (the SDK)Not recordedopenai (the SDK)openai (the SDK)openai_compatible (the gateway)

    Token totals for the two-tool question ranged from 1,910 to 2,111. Each tool traced a separate run and reasoning length varies, so these numbers do not compare the tools.

    Which One Should You Pick?

    All five tools successfully traced our test agent, so the right choice really comes down to your team’s specific constraints, infrastructure preferences, and how tracing fits into the rest of your MLOps tooling.

    • Stick with LangSmith if you’re already in the LangChain/LangGraph ecosystem and don’t mind sending your data to the cloud. It required the least amount of code in our tests (just 25 lines) and integrates flawlessly. Just remember that self-hosting requires an Enterprise license.
    • Choose Langfuse if you value a large, active community. With ~37,000 GitHub stars (as of Nov 2026), it dwarfs the alternatives. It also features a great API-manageable project price table. The trade-off? It’s heavy. You’ll need six containers (including ClickHouse) and about 2.6 GiB of idle memory.
    • Choose Phoenix if you want a lightweight server that still captures the complete OpenAI response on every span. It idles at just 0.47 GiB across two Postgres-backed containers. Just verify that your legal team is okay with the Elastic License 2.0, as it’s source-available rather than strictly open-source.
    • Choose Opik if you absolutely need an Apache-2.0 license and comprehensive error tracebacks—and you don’t mind running ClickHouse alongside MySQL. Be prepared to manually calculate and set costs on every span, as there is no central price table.
    • Choose AcruxCore if you want both tracing and versioned tool management packed into a single, highly efficient server. It had the smallest footprint in our test (0.39 GiB idle with Postgres and Redis), ships under an Apache-2.0 license, and includes a full audit trail for team actions. The trade-offs? Your model calls must pass through its gateway, and the community is still relatively young.
    • Want to keep your options open? Instrument your code using plain OpenTelemetry and OpenInference attributes. All five tools accept these standard spans, meaning you can test them out and switch platforms later just by swapping environment variables.

    The Bottom Line

    All four alternatives successfully recreated LangSmith’s trace tree. The real deciding factors are boilerplate code, span typing, cost tracking, and server bloat.

    LangSmith remains the simplest option for LangChain users who can utilize the cloud. Otherwise, your choice depends on your priorities: Langfuse for community size, Phoenix for a lightweight Postgres footprint, Opik for strict Apache-2.0 compliance with deep error logging, or AcruxCore for combined tracing and tool governance on minimal hardware. Best of all, if you stick to standard OpenTelemetry spans, you aren’t locked in—you can try them all and easily pivot later.

    Alternatives LangSmith SelfHosted tested Tools
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Tool Tech Team
    • Website

    Related Posts

    Why the Agent Isn’t the Hard Part: Where Developers Go Wrong With Agentic Workflows

    November 24, 2026

    Top 10 Black Friday Deals for Designers and Agencies in 2026

    November 23, 2026

    Serving a Local LLM to Several Users: Ollama, LM Studio, llama.cpp and vLLM Benchmarked

    November 23, 2026

    How to Add AI Facial Expression Editing to Your Video Pipeline (2026)

    November 22, 2026

    5 Things Most Developers Get Wrong When Turning Images into HTML

    November 22, 2026

    What to Check Before Adding a Tripo Model to a Website

    November 21, 2026
    Leave A Reply Cancel Reply

    Top posts
    Tech

    OpenAI employee who secretly recorded meetings allegedly affiliated with the Saudi government

    By Tool Tech Team
    Business Software

    How to save your Google Nest app videos before the January shutdown

    By Tool Tech Team

    Claude can ship code for you now – how to try it (if you dare)

    By Tool Tech Team
    Editors Picks

    OpenAI employee who secretly recorded meetings allegedly affiliated with the Saudi government

    November 24, 2026

    How to save your Google Nest app videos before the January shutdown

    November 24, 2026

    Claude can ship code for you now – how to try it (if you dare)

    November 24, 2026

    Why the Agent Isn’t the Hard Part: Where Developers Go Wrong With Agentic Workflows

    November 24, 2026
    About Us

    Welcome to ToolTechBlog, your trusted source for the latest insights, reviews, and practical guides on AI tools, business software, cybersecurity, web hosting, and consumer technology.
    Our mission is simple: to help individuals, entrepreneurs, freelancers, students, and businesses discover the right digital tools to improve productivity, streamline workflows, and make informed technology decisions.

    Our Picks

    OpenAI employee who secretly recorded meetings allegedly affiliated with the Saudi government

    November 24, 2026

    How to save your Google Nest app videos before the January shutdown

    November 24, 2026

    Claude can ship code for you now – how to try it (if you dare)

    November 24, 2026
    Top Reviews

    The AI Hype Index: Unsexy AI

    July 29, 2026

    What it is and How to Fix it

    July 29, 2026

    LG to Ban Residential Proxies from Smart TV Apps

    July 29, 2026

    © 2026 tooltechblog.com. All rights reserved. Designed by DD.

    • About Us
    • Contact Us
    • Terms and Conditions
    • Privacy Policy
    • Disclaimer

    Type above and press Enter to search. Press Esc to cancel.