See how we'd build this for you Free 30-min strategy call
Skip to the guide

Make Claude Code call GPT-6 Astra

Install one open-source loop. Claude Code can send builds, reviews, and plans to GPT-6 Astra, then check every result before it ships.

HOW THE LOOP WORKS CONNECTION LIVE
1 · ORCHESTRATE

Claude Code

Reads your spec and turns it into one clear task.

SENDS TASK
2 · CONNECT

Codex CLI

Opens the route to the selected model.

CALLS ASTRA
3 · EXECUTE

GPT-6 Astra

Builds, reviews, or plans inside the scope Claude set.

5 · CHECK Claude reviews the result and runs the tests
4 · RETURN Astra sends the work back
MODELgpt-6-astra
WRITE AREAyour project only
FINAL CHECKtests before ship
FREE + OPEN SOURCE One command adds Astra to your Claude Code setup.

Install the loop once. Claude Code gets a direct, repeatable path to GPT-6 Astra for real software work. Claude defines the task, Astra handles the delegated work, and Claude checks the result against your repository.

The package includes the bridge, the /astra command, a queue, verification, a green gate, tests, and a live model probe. Every part runs inside the project you choose.

THE CONNECTION IS LIVE

Claude orchestrates. Astra executes.

Run one check. The loop calls GPT-6 Astra and waits for a known response.

1
RUN THE CHECKdoctor --live
GPT-6 ASTRAReceives the request
CONNECTION CONFIRMEDASTRA_OK
MODEL USEDgpt-6-astra
WHAT SUCCESS LOOKS LIKEASTRA_OK
WHAT THIS PROVESClaude can reach Astra
Before you install

Get these four pieces in place

The kit is free. Your Claude and OpenAI access are separate and stay under your own accounts.

01
Git repository

Run the installer from the root of the project you want Claude and Astra to work on.

02
Node.js 20+

The bridge and verification scripts run locally with Node.

03
Claude Code

Claude is the orchestrator and exposes the /astra slash command after install.

04
Codex CLI + Astra access

Codex must be installed, signed in, and able to use gpt-6-astra on your account.

OpenAI lists the model ID as gpt-6-astra and documents non-interactive Codex CLI scripting with codex exec. Availability can vary by account and rollout.

Step 1

Install the loop into your repository

Open Terminal in the target repository, then run this exact command.

TERMINAL / PROJECT ROOT
npm exec --yes --package=github:lasseflagstad/loop-kit -- loop-install "$PWD"
Installs project-local filesMIT LICENSE
WHAT ARRIVES
.claude/commands/astra.md

The slash command Claude uses to launch a bounded handoff.

scripts/loop/astra.mjs

The bridge that pins Astra and sets the allowed write scope.

scripts/loop/verify.mjs

The local check that confirms the kit is complete and configured.

scripts/loop/run-next.mjs

The queue runner for repeatable, auditable jobs.

Step 2

Prove that Astra is responding

Check the installation first. Then make a real, read-only call with Astra pinned.

LOCAL VERIFY
node scripts/loop/verify.mjs
Checks files + configNO MODEL CALL
LIVE ASTRA PROBE
node scripts/loop/astra.mjs doctor --live
Expected token: ASTRA_OKREAD ONLY
doctor --liveEXPECTED RESULT
 Codex CLI installed
 OpenAI account authenticated
 model pin: gpt-6-astra
 live response: ASTRA_OK
Step 3

Open Claude Code and run /astra

Claude receives one reusable command with three explicit delegation modes.

BUILDworkspace write

Implement a bounded task

Astra can edit files inside the repository. Claude reviews the handback and runs the project gates.

/astra build Add the approved API validation
REVIEWread only

Inspect a diff or approach

Astra analyzes the supplied scope without writing to the workspace.

/astra review Check this diff for auth regressions
PLANread only

Produce an implementation plan

Astra studies the repository and returns a plan for Claude to judge before work begins.

/astra plan Map the migration in five bounded steps
The operating loop

Claude stays in charge from spec to ship

Every delegated task keeps its scope, proof, and shipping gates attached.

01 / SPECClaude frames the job

Objective, constraints, acceptance checks, and allowed scope.

02 / HANDOFFThe bridge starts Codex

Mode and model are explicit in the command.

03 / WORKAstra returns the result

Edits, findings, or a plan come back through a recorded process.

04 / INSPECTClaude checks the handback

The orchestrator compares the result with the original job.

05 / GATETests decide what ships

Repository evidence makes the final shipping decision.

What to delegate

Use one loop across the whole build

Claude can call Astra for implementation, independent review, and planning whenever the job needs another strong model.

01 / BUILD

Ship a defined feature

Give Astra the approved scope and let it implement inside the repository.

/astra build
02 / FIX

Clear a failing gate

Send the error, the affected files, and the acceptance check back through the loop.

/astra build
03 / REVIEW

Get an independent code review

Ask Astra to inspect a risky diff while the workspace stays read-only.

/astra review
04 / PLAN

Map a migration first

Let Astra study the repository and return a bounded plan before edits begin.

/astra plan
CLAUDE KEEPS CONTROLDefines the task
Chooses the mode
Checks the handback
Runs the gates
START WITH THE FREE PACKAGE

Connect the research to everything your business does.

The Claude + Astra loop gives two strong models one way to work together. Trust infrastructure can carry the same research and business context into your offers, marketing, sales, and delivery.

RESEARCHMarket + customer signals
BUSINESS CONTEXTWhat your company knows
OFFERSWhat you sell and why
SHARED INTELLIGENCETrust infrastructureResearch + business context
MARKETINGContent + campaigns
SALESMessages + follow-up
DELIVERYHow the work ships