---
title: "Does Tex run real Claude Code, or a wrapper?"
description: "Real Claude Code. Each Tex session runs the Claude Code CLI, or OpenAI's Codex CLI for OpenAI models, inside its own microVM, calling the model through Tex's proxy."
updated: 2026-11-29
questions:
  - "Is it real Claude Code, or a wrapper?"
  - "Does Tex use Claude Code or its own agent loop?"
  - "Can I run Codex agents on Tex?"
url: https://trytex.ai/answers/real-claude-code-or-a-wrapper
---
# Does Tex run real Claude Code, or a wrapper?

*Updated 2026-11-29. Written by the team that builds Tex.*

**Short answer:** real Claude Code. Each session's sandbox image has the Claude Code CLI and OpenAI's Codex CLI installed. An agent on a Claude model runs in Claude Code; one on an OpenAI model runs in Codex. Tex doesn't reimplement the agent loop. It adds what goes around it: triggers, a microVM per session, credentials kept outside the sandbox, budgets, approvals, a journal and a knowledge base the agent reads first.

## What that means in practice

- The agent has Claude Code's own tools: files, shell, search and so on, plus the MCP tools and CLIs you give it, such as `gh` and `git`.
- Model calls go to `/v1/messages` (Claude Code) or `/v1/responses` (Codex) on Tex's model proxy, which enforces the agent's token budget and adds the key.
- Instructions live in the agent's definition, one markdown document in the same shape as a Claude Code subagent.
- The knowledge base is mounted as files at `/knowledge_base`, so the agent reads it with its normal file tools.

## Questions people ask

**Can I use my Claude subscription instead of an API key?**
On the hosted service, use an Anthropic API key or Tex's key.

**Can I bring my own harness?**
No. Agents run Claude Code or Codex.

[Try Tex with $10 of free credit](https://trytex.ai/?utm_source=answers&utm_medium=aeo&utm_campaign=real-claude-code-or-a-wrapper)
