---
title: "Set up an AI support agent from Claude Code or Codex · Replai"
url: https://replai.tw/en/guide/build-support-agent-with-claude-code
language: en
last_updated: 2026-10-29
publisher: "Replai · AIthentic LLC"
---

# Set up a support Agent from Claude Code or Codex

If you already work in a coding agent, you can set up customer support without leaving it. The coding agent connects to Replai, builds the Agent from your docs, tests its answers and adds the chat widget to your site. It asks you before anything reaches a customer.

## Before you start

You need a Replai account, a coding agent that connects to remote MCP servers, and your product documentation as a docs site, a GitHub repository or files.

## Connect the coding agent

Add Replai’s MCP server with one command, then approve access in your browser. The first connection asks you to sign in, choose one Workspace and allow access.

Claude Code:

```
claude mcp add --transport http replai https://api.replai.tw/mcp
```

Codex:

```
codex mcp add replai --url https://api.replai.tw/mcp
```

[Connect Replai to Claude Code, Codex, ChatGPT or another MCP client](https://replai.tw/en/guide/connect-ai-agents) covers every client, what the sign-in asks for and how to revoke access.

## Create the Agent and add your docs

Ask the coding agent to create an Agent and import your documentation. It imports a docs website directly. A GitHub repository or a file on your computer needs one step in the browser, and the coding agent gives you the link.

1. Ask it to create an Agent for your product.
2. Ask it to import your docs website. It finds the pages first, then imports up to 200 per import.
3. To add a GitHub repository, open the Replai link it gives you and connect GitHub. It then imports the repository.
4. To add notes that live only in your repository, ask it to add them as text.

```
Create a Replai Agent for Acme and import https://docs.example.com
```

## Test the answers

Have the coding agent save the questions customers ask most as tests and run them. Read the answers, fix the source when one is wrong, and run the tests again.

Previews and test runs are never charged. Test runs and knowledge imports count toward a monthly setup allowance; when it runs out, the tool says when it resets.

## Review and publish

Publishing makes the Agent answer on its channels, so the coding agent asks you first. It shows you the exact changes, then publishes them.

Before an Agent goes live for the first time, Replai asks you to set up payment on Billing in your browser. [Pricing](https://replai.tw/en/pricing) explains what is charged.

## Add the chat widget to your site

The coding agent turns on the website widget, reads its install code and can add it to your site in the same session.

1. Ask it to turn on the website widget for the Agent.
2. Ask it to add the install code to the template your site uses on every page, before the closing </body> tag.
3. Deploy your site the way you usually do, then open a page and ask the widget a question.

## Keep working from the coding agent

After launch, the same connection reads the Inbox, replies, approves drafts, lists unanswered questions and files Linear issues from conversations.

A reply or an approved draft reaches the customer and can’t be unsent, so the coding agent asks you before each one unless you choose to allow it.

[Troubleshooting: when the Agent does not reply or answers wrong](https://replai.tw/en/guide/troubleshooting)

## Keep reading

- [Connect AI tools](https://replai.tw/en/guide/connect-ai-agents): Add Replai’s remote MCP server to Claude Code, Codex, ChatGPT or another MCP client: commands, what the first sign-in asks for, available tools, how to revoke access and the CLI alternative.
- [Knowledge sources](https://replai.tw/en/guide/knowledge-sources): Files, web pages, websites, Google Drive, GitHub repositories and text: what a Replai Agent can learn from, the limits of each source, and how to keep knowledge current.
- [Channels](https://replai.tw/en/guide/channels): One Agent answers on your website or in your app, a LINE Official Account including group chats, Gmail, Messenger and Instagram, with the same knowledge and handoff settings. WhatsApp status included.

Replai · AIthentic LLC  Last updated October 29, 2026
