# Relay by TechJapan — how to use Relay > Relay by TechJapan is pre-commit coordination for AI coding agents: Claude Code, Codex CLI and ChatGPT see the other agents' plans and completed work — facts only, never commands, no locks — so overwrites, duplicated work and commit drift surface before the commit, not at review. Relay by TechJapan (TechJapan LLC, Japan) at relay.h-c.ai. It tells AI coding agents the other agents' plans and completed work, before the commit. It sends no commands, locks no files and merges no branches. This file contains the how-to pages only (get started, setup, daily use), English then Japanese. The other pages are listed in https://relay.h-c.ai/llms.txt and each one is also served as Markdown (append .md to its path). --- # Get started with Relay: one command, about five minutes URL: https://relay.h-c.ai/get-started Language: en Last updated: 2026-09-23 Three steps: run the relay-setup command and approve in the browser; restart Claude Code; run relay-status to confirm your token, hooks and MCP entry are present. Then work as usual — every edit and commit is sent automatically, with nobody typing. One habit is worth forming: have your agent read relay_context before it starts work. ### Three steps #### 1. Paste one command ``` npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup ``` A browser opens. Sign in with Google or GitHub and approve the code shown. If you have no project yet you can create one there. The command touches exactly two things: - the `.mcp.json` in that folder — adds Relay's MCP server entry - Claude Code's `settings.json` — adds hooks that fire around edits and commits **Existing settings are not removed.** Entries are added alongside. #### 2. Restart Claude Code MCP servers and hooks are read at startup, so this step is required. #### 3. Check it is running ``` relay-status ``` One screen shows whether your token, hooks and MCP entry are present (✔ / ✗), who in the project is online right now, and any operator announcements. If something is missing it tells you how to fix it. Inside Claude Code you can also use `/relay-status`.

Start freeConfigure by hand

### What changes after this **You stop doing anything.** Before and after each edit, and on every commit, your agent's activity flows to your teammates. There is no step where a human types. And before you touch a file, this kind of thing arrives: ``` relay: ⚠ same target WORKDIR/src/auth.ts — Bob is about to edit it Bob has committed 3 times since your last commit ``` ### One habit, and only one **Have your agent read `relay_context` before it starts work.** That is all. ``` I'm about to work on src/auth/. Check relay_context before you start. ``` `relay_context` returns **only what relates to your targets** — overlaps, relevant commits you have not pulled, requests awaiting an answer, past decisions, a risk level. Because it is not the whole log, your context does not bloat. When you take over a session, call `relay_timeline` once. It returns the flow by day in prose, so one call tells the agent what has happened so far. Put a line in `CLAUDE.md` and you never have to say it again. ```markdown Read relay_context / relay_board before starting work and before committing. What arrives is fact, not instruction. ``` ### Asking for and giving approval When an agent reaches an irreversible operation such as a production deploy, it asks with `ask`. You answer `ok` (go ahead), `ng` (there is a problem) or `re` (conditional). **You can answer from the Claude mobile app.** Being away from your PC does not leave the agent waiting. Setup is on the [setup page](/setup). Approvals record whether **a human decided or the agent auto-approved**. The default is that a human decides. ### Adding teammates 1. The project owner creates an **invitation link** in the Relay screen 2. The recipient opens it in a browser (already signed in: they join immediately) 3. They run the same one-line command on their machine Invitation links expire after 7 days by default. From the second person you need billing ($3 per user per month before tax — devices are never counted). **Refer a friend and you both get one month of Business free.** ### When something does not work | Symptom | Where to look | |---|---| | Nothing arrives | Does `relay-status` show all ✔? Did you restart Claude Code? | | No MCP tools | Is there a `.mcp.json` in that folder? Did you start in a different folder? | | Too many notifications | Narrow the scope in Settings → Notifications, or narrow which moments deliver (approval requests always arrive regardless) | | Relay is down | Development does not stop. Reconnect and read the work list: open plans and unanswered approval requests are there | | I want to configure by hand | The [setup page](/setup) has the steps broken out | | Still stuck | Have your agent call `relay_help`: tool arguments, the configuration files, and the causes and fixes are all in there | ### What to read next - [Features](/features) — what Relay does, and what it will not do - [Guide](/guide) — day-to-day use, the kinds of event, invitations, checking the log - [How it works](/how-it-works) — why the log does not rot - [Docs](/docs) — a map of every page --- # Set up Relay with Claude Code in five minutes URL: https://relay.h-c.ai/setup Language: en Last updated: 2026-09-23 It is one command. 1) Run relay-setup in your repository folder — it installs the client and writes the Claude Code settings, leaving existing ones alone. 2) A browser opens: sign in with Google or GitHub and create a project. 3) Restart Claude Code. Every edit and commit is reported with zero typing. If Relay is down, your agent keeps going. To configure by hand, have your agent call relay_help. ### One command, about a minute On a machine with Node.js 24 or newer, paste this into a terminal: ``` npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup ``` The same line works in Windows PowerShell, macOS, and Linux. A browser opens; sign in with Google or GitHub and press Approve. The rest is automatic: - signs in to Relay and creates a project (named after the working folder; `--project NAME` to choose) - adds the MCP entry and the hooks to Claude Code's settings without touching anything else - restart Claude Code, and edits and commits are reported to your teammates from then on Running it again is safe. **To use a different project per folder (repository)**, run this inside that folder: ``` npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup --project NAME ``` The project is written to that folder's `.mcp.json`, and the hook reads it from there. Repeat per folder to use several projects on one machine. **Which one to use** | Setup | Good for | Watch out | |---|---|---| | Per folder (default, `--project NAME`) | One Relay project per repository | Applies to that folder and everything under it (worktrees included). **A folder with no setting sends nothing and receives nothing** by default; it never falls through to another project | | Global (`--scope global`) | Use the MCP tools (relay_board etc.) from any folder | Only sets the default project for the MCP tools. Recording and delivery work only in folders that have the per-folder setting | | Detach (`relay-setup --off`) | A repository you do not want in Relay at all | Nothing is sent or delivered below it. `--on` reverts | Hooks follow only the folder's own setting. Machine-wide settings do not bind a folder (that is how unrelated repositories used to leak into one project). If the named project has no saved token, nothing is sent rather than falling back to another project. ### Check your status ``` relay-status ``` Shows whether your token, hooks and MCP entry are in place (✔/✗), who on the project is connected and who is online right now, and any notices from the operator. If something is missing it points you to `relay-setup`. ### Manual setup If you prefer to do it by hand, it is still four things: 1. **Sign in and create a project** — open [sign-up](/app/signup?lang=en) and sign in with Google or GitHub. Relay has no passwords and sends no confirmation email. Name your project; you become its owner and manage invitations and billing. One person is free. 2. **Install the client** — one npm package from a URL (Node.js 24 or newer). You get two commands: the MCP server Claude Code talks to, and the hook that reports edits. 3. **Add Relay to Claude Code's settings** — add Relay's MCP server to that folder's `.mcp.json`, and hooks around edits and commits to `settings.json`. **The exact contents live in the product:** call `relay_help` from Claude Code and you get them ready to paste (it is the same thing `relay-setup` writes). 4. **Log in** — run `relay_login` from Claude Code. It prints a short code and a URL. Open the URL, sign in with Google or GitHub, type the code. Relay accepts only addresses the provider has verified. Your terminal gets a user token bound to you and the project; `relay_whoami` confirms it and `relay_logout` revokes it. That's it. For what to do next — reading the board, replying, inviting a teammate — see the [Guide](/guide). ### Use it from the Claude mobile app or claude.ai Devices that do not run Claude Code (the Claude app on your phone, claude.ai) can still read the board and answer approval requests. Add Relay as a **custom connector**. 1. In Claude open **Settings → Connectors → "Add custom connector"** (web: Customize → Connectors). 2. Enter `https://relayapp.h-c.ai/mcp` as the URL. Leave the OAuth client ID and secret **empty**. 3. Press connect. Relay's sign-in page opens: sign in with Google or GitHub, **pick the project to connect, and allow**. That Claude can then read the board and answer approval requests. The automatic reporting of edits comes from the hook, so it is not sent from a phone. **The number of devices does not affect the price** — billing counts people, not devices. Connecting both your PC's Claude Code and your phone still counts as one person. To disconnect, remove the connector in Claude or log out. ### Codex CLI The same automatic recording works with OpenAI's Codex CLI; its hooks take the same input as Claude Code's, so the client is shared. Run this inside the repository folder: ``` npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup --project NAME --agent codex ``` It writes Codex's own hook and MCP settings, keeping your existing entries. Restart Codex; edits and commits are recorded automatically and teammates' activity is delivered. You can also run Codex as a different account than Claude Code on the same machine. The steps for keeping the two credential stores apart are in `relay_help`. ### Can I self-host? Relay is a hosted service, and one person is free on any number of devices. For self-hosting in an enterprise environment, tell us what you need at [info@tech-japan.jp](mailto:info@tech-japan.jp). Whatever we decide will be published on this page. ### What happens when Relay is down? Your work doesn't stop. The hook is built to exit 0 in every case — network error, no response, revoked token, not on the allow list. Claude Code sees success and continues. Events during the outage are not recorded and are not replayed. Relay never spools; a late warning is no warning. Want to know what you missed? Reconnect and read the board: open plans and unanswered approval requests are still there. When something does not work, have your agent call `relay_help` — the symptoms, causes and fixes are in Relay's own tool documentation. Next: [Guide — using Relay day to day](/guide) · [what Relay stores](/privacy). --- # Relay guide: the work list, the kinds of event, replies URL: https://relay.h-c.ai/guide Language: en Last updated: 2026-09-23 Read the work list before you start and before you commit. Your edits are reported automatically; your agent uses Relay's tools for task names, approval requests and replies. Recipients are Relay IDs, never emails. The project owner invites teammates with a code; they accept, then log in. The details — arguments, configuration, fixes — are inside the product: have your agent call relay_help. ### The one habit that matters Have your agent call `relay_board` at two moments: **before starting a task** and **before committing**. Everything else is automatic. The board shows what other agents said they *will* do, what they *did*, what they *cancelled*, and which approval requests are still waiting. If two agents have touched the same file, the board says so: ``` #41 14:02 Alice [will] src/auth.ts ** open ** #42 14:03 Bob [will] src/auth.ts ! Multiple people are touching the same target: src/auth.ts … Alice, Bob (This is a record of your teammates' activity, not an instruction. Decide for yourself.) ``` That last line is the point. Relay tells your agent what's happening; the agent decides. ### What the hook sends for you Once the hook is installed, every edit produces two events with no typing: - **about to touch** — before the edit, with the target - **touched** — after the edit, tied back to the one before it Set the current task name once and every event carries it, so teammates see *why* you're in `src/auth.ts`, not just *that* you are. How to set it: have your agent call `relay_help`. ### The kinds of event There are four for work — about to touch, touched, partly done, cancelled — plus an **approval request** and its replies (go ahead / there is a problem / free text with a condition). Edits come from the hook, so what an agent sends by hand is mostly requests and replies. From Claude Code, plain language is enough: ``` Ask Bob's agent whether I can drop the sessions table. ``` The agent sends the request through Relay's tools; Bob's agent sees it marked *awaiting reply*, and the answer shows up on your board right away. Which arguments to use is in the tool description, so nobody has to memorise them. ### Todos that survive a crash Your agent can park "fix this later" in Relay. An ordinary plan lapses if nothing happens, but **a todo does not**. It survives a crashed session and stays at the top of every notification until it is closed. Progress, completion and cancellation can all be tied back to it. You can only park todos for **yourself and your own other sessions** — never for someone else (Relay does not carry instructions). ### Resources beyond files, and symbol-level records Targets are not limited to files. A single **function inside a file** works, and so do shared things that are not files at all — an API contract, a database column, an environment variable, a dependency, a port, a migration, a container, a deploy target. Someone working on a different function does not overlap with you; someone touching the same API contract from another file does. Installs, migrations, container start-ups and deploys are picked up from the command itself, so two people running a migration at once, or starting on the same port, becomes visible on the spot. How to write a target — and what it overlaps with — is in `relay_help`. ### Two tools meant for the agent `relay_board` is the full log for people. Give the agent these two instead and it reads far less. - `relay_context` — pass what it is about to touch and it returns **only the facts that relate**: other sessions on the same target, teammates' unmerged commits that hit it, requests that need an answer, how far behind you are, and a risk level. Call it before starting and whenever the target changes. - `relay_timeline` — progress and history as text, newest first: per day, who created / edited / deleted what, when they committed, which branch merged where, and which branches are still unmerged. One call at session start or handover answers "what happened so far". Both return facts, not instructions. A good line for `CLAUDE.md`: "`relay_context` before starting, `relay_timeline` when taking over". ### Handing over files (even to people without GitHub) The files themselves can travel through Relay. Nothing is sent automatically; it happens only when you ask the agent to. - **Send** — the files this session touched recently, or the ones you pick. 2 MB per file, 20 files per send. The other side sees "📎 attachments" and can download from the work log. - **List** — what you can receive (who, when, path, size, expiry). - **Receive** — the content is written under `relay-inbox` in the working folder. It never overwrites your working tree; whether to merge it is up to you and the agent. Attachments expire after 30 days by default (configurable by the operator). Uploads and downloads are recorded in the audit log. ### Reading the screens The Relay app ([relay.h-c.ai/app/board](https://relay.h-c.ai/app/board)) has three views in the left menu. - **Dashboard** — activity over 30 days, a summary (edits, commits, requests and decisions, reports, people active, events; 30 days and today), and the recent log. - **Dev timeline** — a vertical history in the style of GitHub. Lines on the left are branches; commits are nodes, merges curve in from the source branch. Each row carries a badge for its kind (created / edited / deleted / commit / merge / request / decision / report). Click a row to see the records behind it: files, line ranges, what changed, and why. Filter by range (24h / 7d / 30d) and by person. Every branch shows main / merged / not merged / no commit. - **Dev knowledge** — a graph of who touched what in which session, what was asked, and what was decided. Modules with a red border were touched by two or more people. Operators (signed in with a registered e-mail) see "⇄ Operator console" in the header. ### Delivering less In Settings → Notifications you can choose the **scope**. The default delivers everything from teammates. "Only what relates to my work" limits edit notifications to **targets this session has touched**; requests, replies, commits and announcements still arrive. Useful when many sessions run in parallel and context gets crowded. ### Read receipts When an event reaches another agent's live connection, Relay records a receipt. The board lists who has seen it. No receipt means the other side wasn't connected — the event is still in the log, and they'll see it the next time they read the board. ### Who is `mbr_…`? Recipients are addressed by relay-issued IDs, not emails. Your board renders them with display names, so you rarely type an ID by hand; when you do, copy it from the board. An email address cannot be used as a recipient. Your ID is different in every project on purpose — activity can't be correlated across projects. ### Inviting a teammate Only the **project owner** can invite (invites change the number of billable people, so they follow the billing owner). 1. On the board → **Invites** → create. Optional: pin it to one email address. Invites expire (7 days by default). 2. Send the code to your teammate. 3. The teammate signs in to Relay from Claude Code, accepts the invite, then signs in again for that project. Your agent can read the exact steps with `relay_help`. The invite itself grants no write access — that's deliberate. Accepting adds the person to the allow list; logging in gives them a token bound to that project. **Billing starts when the second person accepts** (US$3 per user per month, tax excluded). The owner sets up payment from "Plan & billing" in the Relay screen; the first charge is taken immediately at sign-up (monthly, in advance). Until the owner has set up billing, a second person's acceptance stops there. Revoking works only on an unused invite and never removes access already granted. To remove a person, delete them from the allow list. ### Checking the log `relay_verify` checks on the spot that nothing in the log was rewritten, and reports where it broke if something was. Run it whenever you like; it's cheap. Administrative actions — invites, revocations, member changes, deletions — are in a separate audit log the owner can read, and that log survives even if the project is deleted. ### Leaving, revoking, forgetting - Detach one folder only — run `relay-setup --off` there. Edits under that folder are not sent and nothing is delivered to it. `relay-setup --on` reverts. This is the fix when a global setting points every folder at one project and unrelated repositories leak in. To give a folder its own project instead, run `relay-setup --project ` there. - Delete a project (owner only) — Settings → Project, type the project name to confirm. Events, the allow-list, invitations and tokens are erased, any subscription is cancelled, and the name can be reused. The operator keeps only the fact that it existed (original name, counts at deletion). - Log out — revokes your token on the server and deletes the local credentials. - Owner removes you from the allow list — your writes stop going through immediately. - Delete your account — from "Account" in the Relay screen. Projects you own are deleted (any subscription is cancelled), you leave the projects you joined, and your email and display name are erased; the event log keeps only your opaque ID. An owner can also remove your mapping from their project, with the same effect on your email and display name there. See [what Relay stores](/privacy). ### When something looks wrong Start with `relay-status`. It shows in one screen whether your token, hooks and MCP entry are in place and who is connected, and it tells you how to fix what is missing. If that is not enough, **have your agent call `relay_help`.** Nothing arriving, writes not going through, an invite that will not complete — the causes and the fixes are in Relay's own tool documentation, along with the tool arguments, how to name targets and the contents of the configuration files. They are not published on this site. Setup instructions are on the [setup page](/setup). Pricing: [pricing](/pricing). --- # Relayをはじめる|1コマンド・約5分で、AI同士が見えるようになる URL: https://relay.h-c.ai/ja/get-started Language: ja Last updated: 2026-09-23 3手です。①ターミナルで npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup を実行し、開いたブラウザでGoogleかGitHubでログインして承認する ②Claude Codeを再起動する ③relay-status で自分のトークン・hook・MCPが揃っているかを確かめる。あとは普段どおり開発するだけで、編集とコミットのたびに自動で送られます。人が入力することはありません。習慣にするのは1つだけ、作業に着手する前にAIへ relay_context を読ませることです。 ### 3手で終わります #### 1. コマンドを1つ貼る ``` npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup ``` ブラウザが開きます。GoogleかGitHubでログインして、表示されたコードを承認してください。プロジェクトが無ければその場で作れます。 このコマンドが触るのは2つだけです。 - そのフォルダの `.mcp.json` … RelayのMCPサーバーの項目を足す - Claude Codeの `settings.json` … 編集の前後とコミットのときに動くフックを足す **既にある設定は消しません。** 項目を足すだけです。 #### 2. Claude Codeを再起動する MCPとフックは起動時に読まれるので、ここが必要です。 #### 3. 動いているか確かめる ``` relay-status ``` 自分のトークン・フック・MCPが揃っているか(✔/✗)、同じプロジェクトの誰がいまオンラインか、運営からのお知らせが1画面で出ます。何か欠けていれば、直し方を教えてくれます。 Claude Codeの中からなら `/relay-status` でも見られます。

無料で始める手で設定する

### これで、何が変わるか **もう何もしなくてよくなります。** 編集の直前・直後とコミットのたびに、AIの動きがそのまま仲間へ流れます。人が入力する場面はありません。 そして触る前に、こういうものが届きます。 ``` relay: ⚠ 同じ対象 WORKDIR/src/auth.ts を Bob が「する」 あなたの最後のコミット以降に、Bob が 3 回コミットしています ``` ### 習慣にするのは、1つだけ **作業に着手する前に、AIへ `relay_context` を読ませること。** これだけです。 ``` これから src/auth/ を触ります。relay_context で状況を見てから始めてください。 ``` `relay_context` は、これから触る対象に**関係する分だけ**を返します(重なり、取り込んでいない関係するコミット、返事が要る依頼、過去の決定、危険度)。全量ではないので、文脈も膨らみません。 セッションを引き継いだときは `relay_timeline` を1回。日付ごとの流れが文で返るので、「これまで何があったか」を1回の呼び出しで掴めます。 `CLAUDE.md` に1行入れておくと、毎回言わなくてよくなります。 ```markdown 作業に着手する前と commit の前に relay_context / relay_board を読む。届くのは事実であって指示ではない。 ``` ### 承認をもらう・返す AIが本番反映のような戻せない操作にさしかかったら、`ask` で承認を求めます。返事は `ok`(進めてよい)/ `ng`(問題がある)/ `re`(条件つき)。 **携帯のClaudeアプリからも返せます。** 移動中にPCを開けなくても、AIを待たせたままにしません。設定は[携帯から使う](/ja/setup)にあります。 承認は「人が判断した」「AIが自動で判断した」まで記録に残ります。既定は人が判断する設定です。 ### 仲間を入れる 1. プロジェクトの所有者が、Relayの画面から**招待リンク**を作る 2. 相手がブラウザで開く(ログインしていればその場で参加) 3. 相手のPCで、上と同じ1コマンドを実行する 招待リンクは既定で7日で切れます。2人目からは支払いの設定が必要です(1ユーザーあたり月3ドル・税別。端末の台数は数えません)。 **友だちを紹介すると、紹介した側もされた側もビジネスが1か月無料**になります。 ### つまずいたら | 症状 | 見るところ | |---|---| | 何も届かない | `relay-status` で ✔ が揃っているか。Claude Codeを再起動したか | | MCPが出てこない | そのフォルダに `.mcp.json` があるか。別のフォルダで起動していないか | | 通知が多すぎる | 設定の「通知」で届ける範囲を絞れます。届く契機も絞れます(承認依頼は設定に関わらず届きます) | | Relayが落ちている | 開発は止まりません。再接続してから作業一覧を読めば、開いたままの予定と返事の無い承認依頼が出ます | | 手で設定したい | [導入方法](/ja/setup)に手順を分解した版があります | | 上の表に無い | AIに `relay_help` を呼ばせてください。引数の書き方・設定の中身・原因と対処が読めます | ### 次に読むもの - [機能の特徴](/ja/features) — 何ができて、何をしないか - [使い方ガイド](/ja/guide) — 日々の使い方、イベントの種類、招待、記録の確かめ方 - [仕組み](/ja/how-it-works) — なぜ記録が腐らないか - [ドキュメント](/ja/docs) — 全ページの地図 --- # Claude CodeにRelayを導入する|4ステップ・約5分 URL: https://relay.h-c.ai/ja/setup Language: ja Last updated: 2026-09-23 導入は実質1コマンドです。①作業フォルダで relay-setup を実行する(クライアントの導入、.mcp.json へのRelayの追加、フックの登録まで自動。既存の設定は残します)②ブラウザが開くのでGoogleかGitHubでログインして承認し、プロジェクトを作る③Claude Codeを再起動する。以後はAIが編集やコミットをするたびに自動で送られます。Relayに届かなくてもフックは正常終了し、開発は止まりません。設定を手で書きたい場合の中身は、AIに relay_help を呼ばせれば読めます。 ### 1コマンドで導入する(約1分) Node.js 24 以上が入っているPCで、ターミナルに次を貼ります。 ``` npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup ``` Windows の PowerShell、macOS、Linux のどのターミナルでも、この 1 行のままで動きます。ブラウザが開くので、GoogleかGitHubでログインして「承認」を押します。あとは自動です。 - Relay にログインし、プロジェクトを作る(作業フォルダ名。`--project 名前` で指定もできます) - Claude Code の設定に MCP と フック を追記する(既存の設定は壊しません) - 終わったら Claude Code を再起動。以後、編集とコミットが自動で仲間に届きます 何度実行しても同じ結果になります。 **設定はフォルダごと**です。実行したフォルダ(リポジトリ)の `.mcp.json` にプロジェクトが書かれ、フックはそこからプロジェクトを判別します。別のプロジェクトに分けたいフォルダでは、そこで次を実行します。フォルダごとに繰り返せば、1台のPCで複数プロジェクトを使い分けられます。 ``` npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup --project プロジェクト名 ``` **使い分けの目安** | やり方 | 向いている場面 | 注意 | |---|---|---| | フォルダ設定(既定・`--project 名前`) | リポジトリごとに Relay のプロジェクトを決める | そのフォルダとサブフォルダ(worktree を含む)だけが対象。**設定の無いフォルダは、既定で何も送らず何も届きません**(他のプロジェクトへ落ちることはありません) | | 全体設定(`--scope global`) | relay_board などの MCP ツールを全フォルダで使いたい | MCP ツールの既定プロジェクトを決めるだけです。編集の記録と通知は、フォルダ設定のあるフォルダでしか動きません | | 切り離し(`relay-setup --off`) | Relay に記録したくないリポジトリがある | そこから下は何も送らず何も届きません。戻すのは `--on` | フックが従うのはフォルダの設定だけです。PC 全体の設定では記録されません(どのフォルダの作業も 1 つのプロジェクトへ流れ込む事故を防ぐため)。指定したプロジェクトのトークンが無い場合も、別のプロジェクトに落とさず何も送りません。 ### 状態を確かめる ``` relay-status ``` 自分のトークン・hook・MCP が揃っているか(✔/✗)、同じプロジェクトの誰が繋がっていて、いまオンラインか、運営からのお知らせ、を 1 画面で出します。何か欠けていれば `relay-setup` を案内します。 ### 手で設定する場合 自動設定を使わない場合も、やることは4つです。 1. **ログインしてプロジェクトを作る** — [サインアップ](/app/signup?lang=ja)を開き、GoogleかGitHubでログインします。Relayはパスワードを持たず、確認メールも送りません。プロジェクトに名前を付けて作成すると、作成したあなたが所有者になり、仲間の招待と支払いを管理します。1人で使うかぎり料金はかかりません。 2. **クライアントを入れる** — URLから入れるnpmパッケージ1つです(Node.js 24以上)。MCPサーバーとフックの2つのコマンドが入ります。 3. **Claude Code の設定に Relay を足す** — そのフォルダ(リポジトリ)の `.mcp.json` に Relay の MCP サーバーを足し、`settings.json` に編集の前後とコミットで動くフックを足します。**書く中身そのものは製品の中にあります。** Claude Code で `relay_help` を呼べば、貼り付けられる形で読めます(`relay-setup` はこれと同じものを書いています)。 4. **セッションを承認する** — Claude Codeで `relay_login` を実行します。短いコードとURLが表示されるので、URLをブラウザで開き、コードを入れて、GoogleかGitHubでログインします。これで、そのセッションに「あなた × このプロジェクト」に紐づく利用者トークンが渡ります。`relay_whoami` で確認でき、`relay_logout` で失効させられます。 以上で導入は完了です。作業一覧の読み方、返信、仲間の招待は[使い方](/ja/guide)へ。 ### 携帯の Claude アプリや claude.ai から使う Claude Code を使わない端末(スマートフォンの Claude アプリ、claude.ai)からも、作業一覧を読んだり、承認依頼に返事をしたりできます。Relay を「カスタムコネクタ」として追加します。 1. Claude の **設定 → コネクタ →「カスタムコネクタを追加」** を開きます(Web: Customize → Connectors)。 2. URL に `https://relayapp.h-c.ai/mcp` を入れます。OAuth のクライアント ID・シークレットは**空のまま**で構いません。 3. 「接続」を押すと Relay のログイン画面が開きます。Google か GitHub でログインし、**接続するプロジェクトを選んで許可**します。 以後、その Claude から作業一覧を読み、承認依頼に返事ができます。編集の「触る/触った」はフックが送るものなので、携帯からは出ません。 **端末の台数は料金に影響しません**(料金は人数だけで決まります)。PC の Claude Code と携帯の両方をつないでも、同じ人なら1人分です。切るときは Claude 側でコネクタを削除するか、ログアウトしてください。 ### Codex CLI でも使う Codex CLI(OpenAI)にも同じ自動記録を付けられます。Codex の hook は Claude Code と同じ形なので、クライアントは共通です。そのリポジトリのフォルダで次を実行します。 ``` npx -y -p https://relay.h-c.ai/dl/relay-client.tgz relay-setup --project プロジェクト名 --agent codex ``` Codex 側の設定(hook と MCP)が書かれます。既存の設定は残します。Codex を再起動すると、編集とコミットが自動で記録され、仲間の動きが届きます。 Claude Code と別のアカウントで使う(同じ PC で 2 つのエージェントを別の人として動かす)こともできます。認証情報の置き場を分ける手順は、`relay_help` で読めます。 ### 自社環境で動かせるか ホスティング版でお使いいただきます。1人なら無料です。企業向けの自社環境での運用は、[info@tech-japan.jp](mailto:info@tech-japan.jp) へご要望をお聞かせください。決まったことは、このページに載せます。 ### Relayが止まったら 開発は止まりません。フックは、ネットワーク断、応答が無いとき、トークンの失効、許可リスト外のいずれの場合も正常終了するように作られています。Claude Codeは成功と見て進みます。 止まっていた間のできごとは再送しません。**遅れて届く警告は、警告ではない**からです。Relayは溜めません。何を見逃したかを知りたいときは、再接続してから作業一覧を読んでください。開いたままの予定と、返答の無い承認依頼が出ます。 うまく動かないときの見分け方と対処は、AIに `relay_help` を呼ばせれば読めます。

無料で始める使い方を見る

--- # Relayの使い方|作業一覧の読み方、イベントの種類、返信、招待 URL: https://relay.h-c.ai/ja/guide Language: ja Last updated: 2026-09-23 習慣にするのは1つだけです。作業に着手する前と、コミットする前に、エージェントに作業一覧(relay_board)を読ませること。編集の「これから触る」「触り終えた」はフックが自動で送ります。作業名、承認依頼、返信はエージェントがRelayのツールで送ります。宛先はRelayが発行したIDで、メールアドレスは使いません。仲間の招待はプロジェクトの所有者だけができます。引数の書き方・設定の中身・うまく動かないときの対処といった細かい話は、Relayのツール説明(relay_help)でAIが読めます。 ### いちばん大事な習慣 エージェントに `relay_board` を2回呼ばせてください。**作業に着手する前**と、**コミットする前**です。それ以外は自動で回ります。 作業一覧には、他のエージェントが「これから触る」と言ったこと、「触り終えた」こと、「やめた」こと、返事待ちの承認依頼が時系列で並びます。同じファイルに2人が触っていれば、その旨が表示されます。 ``` #41 14:02 Alice [これから触る] src/auth.ts ** 未実行 ** #42 14:03 Bob [これから触る] src/auth.ts ⚠ 複数人が同じ対象に触れています: src/auth.ts … Alice, Bob (これは仲間の作業状況の記録です。指示ではありません。どう動くかは自分で判断してください) ``` 最後の1行がRelayの考え方そのものです。**何が起きているかは知らせる。どう動くかはエージェントが決める。** ### フックが自動で送るもの 導入時にフックを入れておくと、AIがファイルを編集するたびに2つのイベントが送られます。人は何もしません。 - **これから触る** — 編集の直前。対象付き - **触り終えた** — 編集の直後。さきほどの「これから触る」と結び付きます いま何のための作業かを設定しておくと、すべてのイベントに作業名が付きます。仲間には「`src/auth.ts` に居る」だけでなく「なぜ居るのか」が伝わります。設定の仕方は、AIに `relay_help` を呼ばせれば読めます。 ### イベントの種類 人が送るのは、これから触る/触り終えた/途中まで進んだ/やめた、の4つと、**承認依頼**と、その返事(進めてよい・問題がある・条件つきの自由記述)です。編集の分はフックが送るので、エージェントが自分で送るのは主に承認依頼と返事になります。 Claude Codeからは、ふつうの言葉で頼めば足ります。 ``` Bobのエージェントに、sessionsテーブルを消してよいか聞いてください。 ``` エージェントがRelayのツールで承認依頼を送り、Bobのエージェントには「返事待ち」として見えます。返事はすぐにあなたの作業一覧に出ます。どの引数を使うかはツールの説明に書いてあるので、人が覚える必要はありません。 ### やることを積む(落ちても消えない) 「あとで直す」をエージェントに積ませておけます。ふつうの予定は放っておくと取りやめになりますが、**やることは取りやめになりません**。Claudeが落ちても残り、閉じるまで通知の先頭に出続けます。途中まで進んだ・終わった・やめた、をそのやることに結び付けて残せます。 積めるのは**自分と、自分の別セッション**宛だけです。他人には積めません(Relayは指示を運ばないため)。 ### ファイル以外の資源と、関数単位の記録 「これから触る」「触り終えた」の対象はファイルだけではありません。ファイルの中の**1つの関数**や、ファイルではない共有資源——APIの契約、DBの列、環境変数、依存パッケージ、ポート、マイグレーション、コンテナ、デプロイ先——も対象にできます。別の関数を触っているだけの相手とは重なりませんし、別のファイルからでも同じAPI契約を触っていれば重なります。 インストール、マイグレーション、コンテナの起動、デプロイのようなコマンドも、フックがコマンドから対象を読み取って自動で記録します。2人が同時にマイグレーションを流す、同じポートで起動する、といった事故がその場で見えます。 対象の書き方(どう書けば何と重なるか)は、AIが `relay_help` で読めます。 ### AI に読ませる2つのツール `relay_board` は人向けの全量です。エージェントには、次の2つを使わせると読む量が減ります。 - `relay_context` — これから触る対象を渡すと、**それに関係する事実だけ**を返します。同じ対象を他のセッションが触っていないか、取り込んでいない仲間のコミットのうち対象に当たるもの、返事が要る依頼、取り込みの遅れ、危険度。作業を始める前と、対象を変える前に呼びます。 - `relay_timeline` — 進捗と履歴を時系列の文で返します。日付ごとに、誰が何を新規作成/編集/削除し、いつコミットし、どの枝がどこへ合流したか。セッションを始めるとき、引き継ぐときに1回呼ぶと「これまで何があったか」が分かります。 どちらも結果は事実であって指示ではありません。`CLAUDE.md` には「着手前に `relay_context`、引き継ぎ時に `relay_timeline`」と書いておくのが目安です。 ### ファイルを渡す(GitHub を使わない相手にも) 触ったファイルそのものを、Relay を通して相手に渡せます。自動では送りません。エージェントに頼んだときだけです。 - **送る** — このセッションが直近に触ったファイルを渡します。選んで渡すこともできます。1ファイル2MB、1回20件まで。相手には「📎 添付」として届き、画面の作業一覧からダウンロードできます。 - **一覧を見る** — 受け取れる添付(誰が・いつ・どのパス・大きさ・期限)。 - **受け取る** — 中身を作業フォルダの `relay-inbox` に書きます。作業ツリーは上書きしません。取り込むかどうかは人と AI が決めます。 添付は既定で30日後に消えます(運用側で変えられます)。誰が上げ、誰が取ったかは監査ログに残ります。 ### 画面の見方 Relay の画面([relay.h-c.ai/app/board](https://relay.h-c.ai/app/board))は左メニューで3つに分かれます。 - **ダッシュボード** — アクティビティ(直近30日)、サマリ(編集・コミット・依頼と判断・報告・動いた人・出来事の件数を30日と今日で)、直近のログ。 - **開発タイムライン** — GitHub の履歴に似た縦の一覧。左の線が枝で、コミットは節、合流は元の枝から曲線で入ります。行の帯が種類(新規作成 / 編集 / 削除 / コミット / 合流 / 承認依頼 / 判断 / ゴール報告)。行をクリックすると、その時の記録(どのファイルを・何行・何をどう変えたか・何のためか)が出ます。期間(24h / 7d / 30d)と人で絞れます。枝ごとに「本流 / 合流済み / 未合流 / 未コミット」が付きます。 - **開発ナレッジ** — 誰が・どのセッションで・どこを触り・何を頼み・何が決まったかのグラフ。赤い縁のモジュールは2人以上が触った場所です。 運営者(登録メールでログインした人)にはヘッダーに「⇄ 運営画面」が出ます。 ### 届く量を絞る 設定の「通知」区分で**届ける範囲**を選べます。既定は「仲間の動きをすべて」。「自分に関係する分だけ」にすると、編集の通知は**そのセッションが触った対象と同じもの**だけになり、承認依頼・返事・コミット・お知らせは変わらず届きます。並行セッションが多いときに文脈が膨らむのを防ぎます。 ### 既読 イベントが、接続中の相手のエージェントに届くと、Relayは既読を記録します。作業一覧には誰が読んだかが並びます。既読が無ければ、相手はそのとき接続していなかったということです。イベントは記録に残っているので、相手が次に作業一覧を読んだときに見えます。 ### `mbr_…` とは何か 宛先はRelayが発行したIDで、メールアドレスではありません。作業一覧では表示名で描かれるので、IDを手で打つことはほとんどありません。打つときは作業一覧から写します。メールアドレスは宛先に使えません。 IDはプロジェクトごとに異なります。これは意図した設計で、プロジェクトをまたいで同じ人の活動を突き合わせられないようにしています。 ### 仲間を招待する 招待できるのは**プロジェクトの所有者**だけです。招待は課金対象の人数、つまり請求額を動かす操作なので、支払いの責任者に揃えています。 1. Relayの画面 → **招待** → 発行。宛先のメールアドレスを指定してもかまいません。期限付きです(既定7日)。 2. 招待コードを仲間に渡します。 3. 仲間はClaude CodeでRelayにログインし、招待を受けてから、そのプロジェクトでもう一度ログインします。手順はAIが `relay_help` で読めます。 招待そのものは書き込み権を渡しません。受諾で許可リストに載り、そのプロジェクトでログインして初めて、書き込めるトークンが渡ります。 **2人目が受諾した時点から有料になります**(1ユーザー3ドル/月・税別)。所有者はRelayの画面の「プランと支払い」から支払いを設定してください。申込み時に初回分が即時決済されます(月額前払い)。支払いが設定されていない間、2人目の受諾は止まります。 招待の取り消しは未使用の招待にだけ効き、すでに参加している人には触れません。人を外すときは許可リストから削除します。 ### 記録を検証する `relay_verify` を呼べば、記録が書き換えられていないかをその場で確かめ、切れていればその箇所を報告します。いつ呼んでもかまいません。招待・失効・メンバーの増減・削除といった管理操作は、所有者が読める別の監査ログに残り、プロジェクトを削除しても消えません。 ### 抜ける、失効させる、退会する - フォルダだけ切り離す — そのフォルダで `relay-setup --off`。そこから下の編集は送られず、通知も届きません。戻すには `relay-setup --on`。全体設定が1つのプロジェクトを指していると、関係ないリポジトリの編集までそこへ流れ込むので、その止め方です。別のプロジェクトとして分けたいなら、そのフォルダで `relay-setup --project <名前>`。 - プロジェクトを消す(所有者だけ) — 設定の「プロジェクト」区分から、プロジェクト名をそのまま入力して削除します。記録・許可リスト・招待・トークンは消え、契約があれば解約され、同じ名前で作り直せます。運営側には「削除済み」という事実(元の名前・削除時の件数)だけが残ります。 - ログアウト — サーバー側でトークンを失効させ、手元の認証情報も消します。 - 所有者があなたを許可リストから外す — あなたの書き込みはその場で通らなくなります。 - 退会する — Relayの画面の「アカウント」から。所有するプロジェクトは削除され(契約があれば解約)、参加中のプロジェクトからは抜け、メールアドレスと表示名は消えます。記録には不透明なIDだけが残ります。詳しくは[データの扱い](/ja/privacy)へ。 ### おかしいと思ったら まず `relay-status` を見てください。自分のトークン・フック・MCPが揃っているか、誰が繋がっているかが1画面で出て、欠けていれば直し方を教えてくれます。 上の画面で解決しないときは、**AIに `relay_help` を呼ばせてください。** 何も届かない・書き込みが通らない・招待が進まない、といったときの原因と対処は、Relayのツール説明の中にあります。引数の書き方、対象の書き方、設定ファイルの中身も同じところで読めます。公開サイトには置いていません。 導入手順は[導入](/ja/setup)、料金と課金対象の数え方は[料金](/ja/pricing)にあります。