![Frame 294](https://github.com/user-attachments/assets/0656ab69-4352-452b-a8f4-1c05cec108d1)

![Frame 292](https://github.com/user-attachments/assets/49db0363-3f89-48a1-ba2b-e30bd5d083b3)

Views0
PublishedFeb 1, 2026

Loading actions...

5 minBeginnerpromptSingle file

Skill content

Main instructions and any bundled files for this skill.

markdown

Frame 294 Frame 292

PeterCat

简体中文 | English | 日本語

An intelligent Q&A bot solution specifically designed for community maintainers and developers.

npm Version DockerHub Version CI Test Status codecov License

🏠 Homepage

🐱Nest: petercat.ai

✨ Features

We provide a conversational Q&A agent configuration system, self-hosted deployment solutions, and a convenient all-in-one application SDK, allowing you to create intelligent Q&A bots for your GitHub repositories with a single click and quickly integrate them into various official websites or projects, providing a more efficient technical support ecosystem for your community.

Chatting means creating

You only need to provide the address or name of your repository, and PeterCat will automatically complete the entire process of creating a bot.

image

Automated Knowledge Base

After the bot is created, all relevant GitHub documentation and issues will be automatically added to the knowledge base as the bot's knowledge source.

image

Multi-Platform Integration

Various integration options, such as SDK integration into official websites or one-click installation of the GitHub App into GitHub repositories.

imageimage

More than QA Robot

project information QueryDiscussion Reply
1732787419202-6fb9ceb7-8fd5-4361-b4e1-df2e0e9c365eimage
PR SummaryCode Review
imageimage
Issue SearchIssue SubmitIssue Reply
imageimageimage

Watch full video

Agent Workflow

Agent workflow

📦 Self-Hosted Deployment

Deployment solution: AWS + Supabase

Here you can find the complete guides:

Deployment Solution

Self hosted Video

⚙️ Environment Variables

The project requires environment variables to be set:

Client

.env.local

Environment VariableTypeDescriptionExample
NEXT_PUBLIC_API_DOMAINRequiredAPI domain of the backend servicehttps://api.petercat.ai

Server

.env

Environment VariableTypeDescriptionExample
Basic Application Environment Variables
API_URLRequiredAPI domain of the backend servicehttps://api.petercat.ai
WEB_URLRequiredDomain of the frontend web servicehttps://petercat.ai
STATIC_URLRequiredStatic resource domainhttps://static.petercat.ai
AWS Related Environment Variables
X_GITHUB_SECRET_NAMERequiredAWS secret file nameprod/githubapp/petercat/pem
STATIC_SECRET_NAMEOptionalThe name of the AWS-managed CloudFront private key. If configured, CloudFront signed URLs will be used to protect your resources. For more information, see the AWS documentation.prod/petercat/static
LLM_TOKEN_SECRET_NAMEOptionalThe name of the LLM signing private key managed by AWS. If configured, Petercat will use the RSA algorithm to manage the user's LLM Token.prod/petercat/llm
LLM_TOKEN_PUBLIC_NAMEOptionalThe name of the LLM signing public key managed by AWS. If configured, Petercat will use the RSA algorithm to manage the user's LLM Token.prod/petercat/llm/pub
STATIC_KEYPAIR_IDOptionalThe Key Pair ID for AWS CloudFront. If configured, CloudFront signed URLs will be used to protect your resources. For more information, see the AWS documentation.APKxxxxxxxx
S3_TEMP_BUCKET_NAMERequiredAWS S3 bucket for temporary image filesxxx-temp
Supabase Related Environment Variables
SUPABASE_URLRequiredSupabase service URL, found herehttps://***.supabase.co
SUPABASE_SERVICE_KEYRequiredSupabase service key, found here{{SUPABASE_SERVICE_KEY}}
Auth0 Related Environment Variables
AUTH0_DOMAINRequiredAuth0 domain, from Auth0 / Application / Basic Informationpetercat.us.auth0.com
AUTH0_CLIENT_IDRequiredAuth0 Client ID, from Auth0 / Application / Basic InformationartfiUxxxx
AUTH0_CLIENT_SECRETRequiredAuth0 Client Secret, from Auth0 / Application / Basic Informationxxxx-xxxx-xxx
API_IDENTIFIERRequiredAuth0 API Identifierhttps://petercat.us.auth0.com/api/v2/
LLM Related Environment Variables
OPENAI_API_KEYRequiredOpenAI API keysk-xxxx
OPENAI_BASE_URLOptionalBase URL for API requests. Only specify if using a proxy or service emulator.https://api.openai.com/v1
GEMINI_API_KEYOptionalGemini API keyxxxx
TAVILY_API_KEYOptionalTavily API keytvly-xxxxx
GitHub App Registration Environment Variables
X_GITHUB_APP_IDOptionalGitHub App ID123456
X_GITHUB_APPS_CLIENT_IDOptionalGitHub App Client IDIv1.xxxxxxx
X_GITHUB_APPS_CLIENT_SECRETOptionalGitHub App Client Secretxxxxxxxx
Rate Limiting Configuration
RATE_LIMIT_ENABLEDOptionalWhether rate limiting is enabledTrue
RATE_LIMIT_REQUESTSOptionalNumber of requests for rate limiting100
RATE_LIMIT_DURATIONOptionalDuration for rate limiting (in minutes)1
RAG server config
WHISKER_API_URLRequiredWHISKER RAG Server Pathhttp://....
WHISKER_API_KEYRequiredWHISKER RAG Server KEYsk-xxxx

🤝 Contributing

PeterCat uses yarn as the package manager.

git clone https://github.com/petercat-ai/petercat.git

# Install dependencies
yarn run bootstrap

# Debug client
yarn run client

# Debug assistant
yarn run assistant

# Debug server
yarn run server

# Start website locally
yarn run client:server

# Start assistant component locally
yarn run assistant:server

# Build assistant
cd assistant
yarn run build
npm publish

# Docker build
yarn run build:docker

# PyPI build
yarn run build:pypi
yarn run publish:pypi

💼 Enterprise Integration

Please send your project address, usage scenarios, usage frequency, and other information to [email protected]

📧 Reporting Issues

PeterCat is still in its growth stage, and occasional “tantrums” are to be expected. Please report issues via the following channels:

👬 Contributors

https://github.com/petercat-ai/petercat/graphs/contributors

💗 Sponsor

Ant Design

📄 License

MIT@PeterCat

Prompt Playground

2 Variables

Fill Variables

Preview

![Frame 294](https://github.com/user-attachments/assets/0656ab69-4352-452b-a8f4-1c05cec108d1)
![Frame 292](https://github.com/user-attachments/assets/49db0363-3f89-48a1-ba2b-e30bd5d083b3)

# PeterCat

<div align="center">

  <img src="https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg" width="18">[简体中文](./README.md) | English | [日本語](./README.ja-JP.md)

  **An intelligent Q&A bot solution specifically designed for community maintainers and developers.**

  [![npm](https://img.shields.io/npm/dm/@petercatai/assistant.svg)](https://www.npmjs.com/package/@petercatai/assistant)
  [![Version](https://img.shields.io/npm/v/petercat-lui/latest.svg)](https://www.npmjs.com/package/petercat-lui)
  [![DockerHub Version](https://img.shields.io/docker/v/petercatai/petercat?logo=docker&logoColor=white)](https://hub.docker.com/r/petercatai/petercat)
  [![CI Test Status](https://github.com/petercat-ai/petercat/actions/workflows/pr-tests.yml/badge.svg)](https://github.com/petercat-ai/petercat/actions/workflows/pr-tests.yml)
  [![codecov](https://codecov.io/github/petercat-ai/petercat/graph/badge.svg?token=2HAO18FB6X)](https://codecov.io/github/petercat-ai/petercat)
  [![License](https://img.shields.io/badge/License-MIT%40Peter%20Cat-yellow.svg)](https://github.com/petercat-ai/petercat/blob/master/LICENSE)
 

</div>

## 🏠 Homepage

[🐱Nest: petercat.ai](https://petercat.ai)

## ✨ Features

We provide a conversational Q&A agent configuration system, self-hosted deployment solutions, and a convenient all-in-one application SDK, allowing you to create intelligent Q&A bots for your GitHub repositories with a single click and quickly integrate them into various official websites or projects, providing a more efficient technical support ecosystem for your community.

### Chatting means creating

You only need to provide the address or name of your repository, and PeterCat will automatically complete the entire process of creating a bot.

![image](https://github.com/user-attachments/assets/51d1a8f8-faa1-46a9-bbf0-fbec13f63156)

### Automated Knowledge Base

After the bot is created, all relevant GitHub documentation and issues will be automatically added to the knowledge base as the bot's knowledge source.

![image](https://github.com/user-attachments/assets/ff6623e3-e951-4f99-8501-3da6016333a6)

### Multi-Platform Integration

Various integration options, such as SDK integration into official websites or one-click installation of the GitHub App into GitHub repositories.

| ![image](https://github.com/user-attachments/assets/15efe5e7-1383-44d8-986f-ff73fe055f44)| ![image](https://github.com/user-attachments/assets/bc49132a-f8c8-42d6-8bc0-d516cb3f7c9e)|
|:----------------------------------------------------------------------------------------------------------:|:-----------------------------------------------------------------------------------------------------------:|

### More than QA Robot

| project information Query                | Discussion Reply                          
| ----------------------------------------- | --------------------------------------- | 
| ![1732787419202-6fb9ceb7-8fd5-4361-b4e1-df2e0e9c365e](https://github.com/user-attachments/assets/82aa3e44-00db-4f64-82aa-5a8139c02de3) | ![image](https://github.com/user-attachments/assets/a4b79596-3336-4a5e-b0ce-2740129ba27b) |


| PR Summary       | Code Review     | 
| ----------------------------------------- | --------------------------------------- | 
| ![image](https://github.com/user-attachments/assets/aa0ef55f-b143-4695-81b0-0ebc397a24da) | ![image](https://github.com/user-attachments/assets/9dad164e-96c8-4649-a936-7965049a99f4)|

| Issue Search                          | Issue Submit                             | Issue Reply      | 
| ----------------------------------------- | --------------------------------------- | --------------------------------------- | 
| ![image](https://github.com/user-attachments/assets/f58d9b4d-ec99-4e38-ab90-37df1075c55b) | ![image](https://github.com/user-attachments/assets/f369128e-000a-40b3-89ba-e13f4375db3b) | ![image](https://github.com/user-attachments/assets/9b923269-3d6f-4ea6-82ce-4b58cb236bca) |

[Watch full video](https://www.youtube.com/watch?v=83Y0_q2Fskk)

## Agent Workflow

![Agent workflow](https://mdn.alipayobjects.com/huamei_j8gzmo/afts/img/A*m24tTIZpW7cAAAAAAAAAAAAADrPSAQ/original)

## 📦 Self-Hosted Deployment

Deployment solution: [AWS](https://aws.amazon.com) + [Supabase](https://supabase.com)

Here you can find the complete guides:
- [Self-Hosting - Start the Service Locally](./docs/guides/self_hosted_local.md)
- [Self-Hosting - Deploy to AWS](./docs/guides/self_hosted_aws.md)


![Deployment Solution](https://mdn.alipayobjects.com/huamei_j8gzmo/afts/img/A*0_aUTJpyx1YAAAAAAAAAAAAADrPSAQ/original)

[![Self hosted Video](https://mdn.alipayobjects.com/huamei_j8gzmo/afts/img/A*spdZSbWsVhkAAAAAAAAAAAAADrPSAQ/fmt.webp)](https://www.youtube.com/watch?v=Al6R9Ye5mBY)


## ⚙️ Environment Variables

The project requires environment variables to be set:

### Client
`.env.local`

| Environment Variable       | Type    | Description                                      | Example                                     |
|----------------------------|---------|--------------------------------------------------|---------------------------------------------|
| `NEXT_PUBLIC_API_DOMAIN`    | Required | API domain of the backend service                | `https://api.petercat.ai`                   |


### Server

`.env`

| Environment Variable       | Type                                       | Description                                   | Example                                     |
|----------------------------|--------------------------------------------|-----------------------------------------------|---------------------------------------------|
| **Basic Application Environment Variables**                             |
| `API_URL`                  | Required                                   | API domain of the backend service             | `https://api.petercat.ai`                   |
| `WEB_URL`                  | Required                                   | Domain of the frontend web service            | `https://petercat.ai`                       |
| `STATIC_URL`               | Required                                   | Static resource domain                        | `https://static.petercat.ai`                |
| **AWS Related Environment Variables**                                  |
| `X_GITHUB_SECRET_NAME`          | Required                                   | AWS secret file name                          | `prod/githubapp/petercat/pem`               |
| `STATIC_SECRET_NAME` | Optional | The name of the AWS-managed CloudFront private key. If configured, CloudFront signed URLs will be used to protect your resources. For more information, see the [AWS documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html). | `prod/petercat/static` |
| `LLM_TOKEN_SECRET_NAME` | Optional | The name of the LLM signing private key managed by AWS. If configured, Petercat will use the RSA algorithm to manage the user's LLM Token. | `prod/petercat/llm` |
| `LLM_TOKEN_PUBLIC_NAME` | Optional | The name of the LLM signing public key managed by AWS. If configured, Petercat will use the RSA algorithm to manage the user's LLM Token. | `prod/petercat/llm/pub` |
| `STATIC_KEYPAIR_ID` | Optional | The Key Pair ID for AWS CloudFront. If configured, CloudFront signed URLs will be used to protect your resources. For more information, see the [AWS documentation](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-trusted-signers.html). | `APKxxxxxxxx` |
| `S3_TEMP_BUCKET_NAME`      | Required                                   | AWS S3 bucket for temporary image files                 | `xxx-temp`                                  |
| **Supabase Related Environment Variables**                              |
| `SUPABASE_URL`             | Required                                   | Supabase service URL, found [here](https://supabase.com/dashboard/project/_/settings/database) | `https://***.supabase.co`                   |
| `SUPABASE_SERVICE_KEY`     | Required                                   | Supabase service key, found [here](https://supabase.com/dashboard/project/_/settings/database) | `{{SUPABASE_SERVICE_KEY}}`                  |
| **Auth0 Related Environment Variables**                                 |
| `AUTH0_DOMAIN`             | Required                                   | Auth0 domain, from Auth0 / Application / Basic Information | `petercat.us.auth0.com`                     |
| `AUTH0_CLIENT_ID`          | Required                                   | Auth0 Client ID, from Auth0 / Application / Basic Information | `artfiUxxxx`                                |
| `AUTH0_CLIENT_SECRET`      | Required                                   | Auth0 Client Secret, from Auth0 / Application / Basic Information | `xxxx-xxxx-xxx`                             |
| `API_IDENTIFIER`           | Required                                   | Auth0 API Identifier                           | `https://petercat.us.auth0.com/api/v2/`     |
| **LLM Related Environment Variables**                                   |
| `OPENAI_API_KEY`           | Required                                   | OpenAI API key                                 | `sk-xxxx`                                   |
| `OPENAI_BASE_URL`          | Optional                                   | Base URL for API requests. Only specify if using a proxy or service emulator.     | `https://api.openai.com/v1`
| `GEMINI_API_KEY`           | Optional                                   | Gemini API key                                 | `xxxx`                                      |
| `TAVILY_API_KEY`           | Optional                                   | Tavily API key                                 | `tvly-xxxxx`                                |
| **GitHub App Registration Environment Variables**                       |
| `X_GITHUB_APP_ID`          | Optional                                   | GitHub App ID                                  | `123456`                                    |
| `X_GITHUB_APPS_CLIENT_ID`  | Optional                                   | GitHub App Client ID                           | `Iv1.xxxxxxx`                               |
| `X_GITHUB_APPS_CLIENT_SECRET` | Optional                               | GitHub App Client Secret                       | `xxxxxxxx`                                  |
| **Rate Limiting Configuration**                                         |
| `RATE_LIMIT_ENABLED`       | Optional                                   | Whether rate limiting is enabled               | `True`                                      |
| `RATE_LIMIT_REQUESTS`      | Optional                                   | Number of requests for rate limiting           | `100`                                       |
| `RATE_LIMIT_DURATION`      | Optional                                   | Duration for rate limiting (in minutes)        | `1`                                         |
| **RAG server config** |
| `WHISKER_API_URL` | Required | WHISKER RAG Server Path | `http://....` |
| `WHISKER_API_KEY` | Required | WHISKER RAG Server KEY | `sk-xxxx` |
## 🤝 Contributing

> PeterCat uses yarn as the package manager.

```bash
git clone https://github.com/petercat-ai/petercat.git

# Install dependencies
yarn run bootstrap

# Debug client
yarn run client

# Debug assistant
yarn run assistant

# Debug server
yarn run server

# Start website locally
yarn run client:server

# Start assistant component locally
yarn run assistant:server

# Build assistant
cd assistant
yarn run build
npm publish

# Docker build
yarn run build:docker

# PyPI build
yarn run build:pypi
yarn run publish:pypi
```


## 💼 Enterprise Integration

Please send your project address, usage scenarios, usage frequency, and other information to [[email protected] ]([email protected] ) 

## 📧 Reporting Issues

PeterCat is still in its growth stage, and occasional “tantrums” are to be expected. Please report issues via the following channels:

* [Submit an Issue(https://github.com/petercat-ai/petercat/issues/new/choose)
*  [Discussions](https://github.com/petercat-ai/petercat/discussions) 

👬 Contributors

![https://github.com/petercat-ai/petercat/graphs/contributors](https://contrib.rocks/image?repo=petercat-ai/petercat)

## 💗 Sponsor

[Ant Design](https://ant.design/)

## 📄 License

MIT@[PeterCat](https://github.com/petercat-ai/petercat/blob/main/LICENSE)
Share: