okisdev's docs

Deploying Chat Chat

Starting from v0.1.0 and beyond, we will no longer support database integration.

Prerequisites

No prerequisites are required for deployment alone.

Environment Variables

Variable NameDescriptionDefaultRequired
Anthropic
NEXT_PUBLIC_ACCESS_ANTHROPICAllow public access to AnthropicfalseNo
ANTHROPIC_API_KEYAnthropic API keyNo
Cohere
NEXT_PUBLIC_ACCESS_COHEREAllow public access to CoherefalseNo
COHERE_API_KEYCohere API keyNo
Fireworks
NEXT_PUBLIC_ACCESS_FIREWORKSAllow public access to FireworksfalseNo
FIREWORKS_API_KEYFireworks API keyNo
Google
NEXT_PUBLIC_ACCESS_GOOGLEAllow public access to GooglefalseNo
GOOGLE_API_KEYGoogle API keyNo
Groq
NEXT_PUBLIC_ACCESS_GROQAllow public access to GroqfalseNo
GROQ_API_KEYGroq API keyNo
Hugging Face
NEXT_PUBLIC_ACCESS_HUGGINGFACEAllow public access to Hugging FacefalseNo
HUGGINGFACE_API_KEYHugging Face API keyNo
Mistral
NEXT_PUBLIC_ACCESS_MISTRALAllow public access to MistralfalseNo
MISTRAL_API_KEYMistral API keyNo
OpenAI
NEXT_PUBLIC_ACCESS_OPENAIAllow public access to OpenAIfalseNo
OPENAI_API_KEYOpenAI API keyNo
OPENAI_API_ENDPOINTOpenAI API endpointNo
Perplexity
NEXT_PUBLIC_ACCESS_PERPLEXITYAllow public access to PerplexityfalseNo
PERPLEXITY_API_KEYPerplexity API keyNo
Tavily Search
NEXT_PUBLIC_ACCESS_TAVILY_SEARCHAllow public access to TavilyfalseNo
TAVILY_SEARCH_API_KEYTavily API keyNo

Deployment

Local Deployment

  1. Clone the repository:

    git clone https://github.com/okisdev/ChatChat.git
  2. Install dependencies:

    cd ChatChat
    npm install -g pnpm
    pnpm install
  3. Create the .env.local file and fill in the environment variables:

    cp .env.local.example .env.local
  4. Run the application:

    pnpm run dev

Third-Party Deployment

Deploy to Railway

Deployed in Vercel

Docker Deployment

  1. Clone the repository:

    git clone https://github.com/okisdev/ChatChat.git
  2. Build the Docker image:

    docker build -t chatchat .
    docker run -p 3000:3000 chatchat

Or use the image from Docker Hub:

docker run -p 3000:3000 ghcr.io/okisdev/chatchat:latest

On this page