Setup Adapter Build it with your AI

Build it with your AI

guide

You built an AI — a CLI agent, a local model, something entirely your own. The tool that built it can also connect it to Conduck: one brief tells your AI coding tool how to build the adapter, verify it against Conduck's own checks, and hand a working setup back to you.

1Hand your AI the brief

Paste this into the AI coding tool that knows your engine — Claude Code, Codex, or whatever you build with — and fill in the one placeholder:

paste into your AI tool
Read https://conduck.com/setup/adapter/build.md and follow it. The AI engine to connect: <describe it - e.g. "the agent in this repo" or "the Claude Code CLI on this machine">.

The brief carries the whole workflow — here's the flight plan it walks your AI through, so you know what's happening while it works:

1

Reads the contract

Fetches the adapter spec and records the exact revision it builds against.

2

Inspects your engine

How a turn runs, whether it can see images, what can run in parallel — then agrees the details with you: port, token, optional file folder.

3

Builds the adapter

A small HTTP server in front of your engine, reachable only from the machine itself — plus a harmless echo mode used purely for testing.

4

Loops on the doctor

Runs Conduck’s conformance checks against echo first, then against your real engine — fixing and re-running until ordinary and deep runs both exit green.

5

Tests what checks can’t see

Its own tests for timeouts, process cleanup, file confinement, and that nothing sensitive ever reaches a log.

6

Installs it always-on

Under a supervisor (launchd, systemd), so the adapter survives restarts — a terminal window left open is not a deployment.

7

Hands back to you

A README and self-test write-up, the values you’ll need for pairing — and the pairing step itself, which is deliberately yours.

The full, exact instructions are the adapter contract plus the brief itself — this is just the map.

2It builds until the doctor says green

The finish line is not your AI's opinion — it's Conduck's automated conformance check. The conduck-connect script's --doctor mode (and its deeper --deep run) sends the adapter the same requests Conduck sends and verifies the replies, exiting 0 only when everything conforms. The brief instructs your AI to loop on that check and to report the doctor's results, not its own summary.

  • Ask for the deliverables the brief requires: a README, a SELF-TEST.md with the doctor transcript, and a SPEC-FEEDBACK.md noting anything unclear in the contract.
  • Spec feedback is welcome upstream — the brief has your AI draft a fully redacted report and asks you before anything is submitted.

3Expose and pair — this part is yours

When the doctor is green, run Conduck's setup command on the adapter's machine. It helps put HTTPS in front (Tailscale, cloudflared, or a front you already run), verifies with real requests, and prints a QR pairing code to scan in Conduck:

on the adapter's machine
curl -fsSLO https://github.com/gigaduckai/conduck-connect/releases/latest/download/conduck-connect.sh && bash conduck-connect.sh --generic

The wizard needs a real, interactive terminal and asks a few questions — the port, the token, the working folder. Your AI will hand you those values; you type them and scan the code. That's deliberate: pairing is the moment a person confirms what goes live.

What to expect

  • This flow is validated. An AI coding tool with no prior knowledge of Conduck built a conforming adapter from the public contract alone — conformance checks green on the first run, then live tests from a phone.
  • The doctor changes nothing. It only sends requests and grades replies — run it as often as you like.
  • Deployment is part of the job. The brief has your AI install the adapter under a supervisor so it survives restarts — Conduck expects an always-on gateway, and a terminal window left open is not one.
  • Your AI, your devices. The adapter connects your own engine — your key, your login, your machine — to your own devices. Don't expose it to third parties or resell access.