npm.io
1.1.0 • Published 2d ago

@tanstack/ai-codex

Licence
MIT
Version
1.1.0
Deps
0
Size
196 kB
Vulns
0
Weekly
0
Stars
3.4K
TanStack AI

@tanstack/ai-codex

Codex harness adapter for TanStack AI — run OpenAI Codex (via @openai/codex-sdk) as a chat backend with local tool execution, stateful coding sessions, and TanStack tool bridging.

import { chat } from '@tanstack/ai'
import { codexText } from '@tanstack/ai-codex'

const stream = chat({
  adapter: codexText('gpt-5.1-codex', {
    cwd: '/path/to/project',
    sandboxMode: 'workspace-write',
  }),
  messages: [{ role: 'user', content: 'Fix the failing test.' }],
  threadId: 'thread-1',
})

Server-only (Node). See the Codex adapter docs for sessions, tool bridging, sandboxing, and limitations.

Keywords