Trois façons de commencer
Démarrage rapide
Branchez un backend d’agent complet à votre application avec une seule clé API. Aucune ingénierie de harness.
- 01
Copiez le prompt et envoyez-le
Build an agent-powered feature with HarnessRouter as its agent backend. Start by asking me: What do you want to ship to your users? Ask me if anything else is unclear. 1. Read the setup guide first: https://harnessrouter.ai/agents.md (if you cannot open links, ask me to paste it). 2. Open a secure secret prompt and ask me for my HarnessRouter API key. Store it as HR_API_KEY in my backend environment, replacing the existing value if there is one (any key of this workspace works for every setup in it). Never ask me to paste it into this chat. Never print, log or commit it, and never send it to the browser. 3. Build the feature in my app. If this folder already has an app, add the feature there and keep its design and architecture. If it is empty, create a small web app for it first, and ask me which stack if it is unclear. Then add the HarnessRouter integration. 4. Create one `harness` resource through the HarnessRouter API. Set its `base` to the selected agent harness, then configure its model and instructions. Agent harness: the one the guide recommends for this job. Model: the one the guide recommends. Give it a clear name and the feature’s standing instructions. If one with that name already exists in my workspace, reuse it. 5. Call it from my backend as How it connects says below. 6. Verify: send one real request through my app’s own code path and confirm a result comes back. 7. Tell me its Harness ID. How it connects: My frontend talks only to my backend. It never calls HarnessRouter and never sees the key. My backend calls POST https://api.harnessrouter.ai/v1/responses, sending HR_API_KEY from its own environment as Authorization: Bearer <key>. One user request is one task: input is what my user typed, and metadata.harness_id is the Harness ID of the feature’s own setup on every request the feature sends, never another setup’s. My backend sets the Harness ID; never take it from the browser. Send previous_response_id, the id of the response it continues, only when my user follows up on the same result. Otherwise start a new task: a follow-up carries the earlier context and costs more. A task can take minutes. Send stream: true and pass its events to my frontend as progress, or send background: true and poll GET /v1/responses/{id} until its status is completed, failed, incomplete or cancelled. The finished response’s output holds the answer text, with each file the agent made as an annotation carrying its filename and download_url. GET /v1/sessions/{session_id}/files lists all of the task’s files (session_id is in the response’s metadata). My backend downloads them with the key and serves them to my frontend. Save each task’s response id and session_id with my user’s own record, so my app can show their tasks and continue them. Instructions are stored in the HarnessRouter setup, not in my app’s code or sent with every task. Keep a copy of the setup in my repo as harnessrouter.json (harness_id, name, base, model, instructions). To change it later, fetch the live setup first (it may have been edited in HarnessRouter), update harnessrouter.json, then apply it with the HarnessRouter API.Collez le prompt dans Claude Code ou Codex, dans votre terminal ou dans l’application de bureau. - 02
Lorsqu’il vous le demande, dites-lui quoi construire
Agent de comptabilité01 / 03
Créez un agent de comptabilité avec une interface utilisateur. Lire une facture, extraire le fournisseur, le total et la taxe, puis rédiger l’écriture comptable. Aucun conseil fiscal ou juridique.
Copiez d’abord le prompt pour débloquer
- 03
Créer une clé API
Lorsque votre agent de codage vous la demande, collez la clé dans son invite sécurisée de saisie de secrets. Il stocke la clé sous HR_API_KEY sur le serveur de votre application.
Gardez-la secrète. Collez la clé uniquement dans la fenêtre modale sécurisée ouverte par votre agent de codage. Ne la collez jamais dans un chat classique, des fichiers source, AGENTS.md, du code côté navigateur, des journaux ou des captures d’écran.
- 04
Il construit votre application
Il construit la fonctionnalité dans votre application en respectant son design. Dans un dossier vide, il crée d’abord une petite application web.
- 05
Il se connecte à HarnessRouter
- Enregistre la configuration
- Le vérifie avec une tâche réelle