Back to Integrations
Agent Framework

DEVUP AI for the OpenAI Agents SDK in TypeScript

Build agents in TypeScript with OpenAI's Agents SDK and run them on DEVUP AI models. Set one default client, and your agents call tools, hand off to each other and stream their answers.

System Architecture

How the Agents SDK Connects to DEVUP AI

1. Client
Your agents
Instructions, tools and handoffs in TypeScript
2. Gateway
DEVUP OpenAI-compatible API
POST /v1/responses
3. Inference
Models
DeepSeek-V4-Pro, gpt-5.4-mini or any catalog ID
4. Response
Response
Answers, tool calls and handoffs

Configuration

Two Settings That Matter

Base URL

https://api.devupai.com/v1

Pass it as baseURL of the OpenAI client.

Default client

setDefaultOpenAIClient

Every agent in your process uses the DEVUP AI client, with model IDs such as deepseek-ai/DeepSeek-V4-Pro written exactly as in the catalog.

Quick Start

Configure Once, Run Any Agent

devup-config.mts

typescript
import OpenAI from 'openai';
import { setDefaultOpenAIClient, setTracingDisabled } from '@openai/agents';

const apiKey = process.env.DEVUP_API_KEY;
if (!apiKey) {
  throw new Error('Set DEVUP_API_KEY before running your agents.');
}

setDefaultOpenAIClient(
  new OpenAI({
    apiKey,
    baseURL: 'https://api.devupai.com/v1',
  }),
);
setTracingDisabled(true);

basic.mts

typescript
import './devup-config.mts';
import { Agent, run } from '@openai/agents';

const agent = new Agent({
  name: 'Assistant',
  instructions: 'Reply with exactly: Salam DEVUP',
  model: 'deepseek-ai/DeepSeek-V4-Pro',
});

const result = await run(agent, 'Say hello.');
console.log(result.finalOutput);

Capabilities

Supported Capabilities

Tools and handoffs

Agents call TypeScript functions defined with tool() and hand conversations to specialist agents.

Streaming

Pass { stream: true } to run() and read the answer as it is written.

Structured output

Set a zod schema as outputType and get a typed result back.

Local DZD billing

Metered billing in Algerian Dinar with BaridiMob, Edahabia, and CIB local payment support.

FAQ

OpenAI Agents SDK for TypeScript and DEVUP AI

Does the OpenAI Agents SDK for TypeScript work with DEVUP AI?

Yes. Set a default OpenAI client with baseURL https://api.devupai.com/v1 and your DEVUP AI key. Agents, tools, handoffs, streaming and structured output then run on DEVUP AI models.

Which API does the SDK use with DEVUP AI?

The Responses API, POST /v1/responses, which is the SDK's default. No extra setting is needed.

Which models can my agents use?

Any model ID from the DEVUP AI catalog, written exactly as listed, such as deepseek-ai/DeepSeek-V4-Pro or openai/gpt-5.4-mini.

Ready to Build TypeScript Agents on DEVUP AI?