dvcrn

ChatGPT UI — Design skill for Claude Code

Design community

ChatGPT UI with auth, OpenAI, Claude, Gemini support, written in Elixir + LiveView.

How to install ChatGPT UI

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dvcrn/chatgpt-ui and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What ChatGPT UI does

ChatGPT UI with auth, OpenAI, Claude, Gemini support, written in Elixir + LiveView.

Alternatives in Design

  • Pipelines — Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework 2.4k ★
  • Langchain — Elixir implementation of a LangChain style framework that lets Elixir projects integrate with and leverage LLM 1.1k ★
  • Imagen — Generate images using Google Gemini's image generation API for UI mockups, icons, illustrations, and visual as 162 ★

README

ChatGPT UI

ChatGPT (or Claude / Gemini Pro) to host yourself, targeted at business-ey usecases that may be useful within a company, written in Elixir + LiveView

![screenshot](screenshot.png)

What is this?

The goal is to create a simple ChatGPT UI, for you and your company to self-host.

Features

  • Support for OpenAI GPT4, Google Gemini (through Vertex) and Anthropic Claude models (through bedrock)
  • "Scenarios" for repetitive tasks you find yourself doing a lot
  • Use your own OpenAI API key
  • Google OAuth authentication
  • Restrict access to certain email domains
  • Set which model to use
  • Code highlighting with highlightjs
  • Streaming messages support
  • Dark Mode
  • Automatic content truncating based on token count with bert-base-multilingual-uncased

Configuration

In config.exs, you can set the following keys:

config :chatgpt,
  title: "Elixir ChatGPT",
  enable_google_oauth: true,
  restrict_email_domains: false,
  allowed_email_domains: ["google.com"]

  default_model: :"gpt-4",
  models: [
    %{
      id: :"anthropic.claude-3-sonnet-20240229-v1:0",
      provider: :anthropic,  # <- provider can only be :anthropic, :google or :openai currently
      truncate_tokens: 100_000,
      name: "Claude 3 Sonnet"
    },
    # %{
    #   id: :"gemini-1.0-pro",
    #   provider: :google,
    #   truncate_tokens: 100_000,
    #   name: "Gemini Pro (Google)"
    # },
    %{
      id: :"gpt-4",
      provider: :openai,
      truncate_tokens: 8000,
      name: "GPT4"
    },
    %{
      id: :"gpt-3.5-turbo-16k",
      provider: :openai,
      truncate_tokens: 15000,
      name: "GPT3.5 Turbo 16k"
    },
    %{
      id: :"gpt-4-32k",
      provider: :openai,
      truncate_tokens: 30000,
      name: "GPT4 32k (EXPENSIVE!)"
    }
  ],

Then in `runtime.exs`:


# generate them at https://platform.openai.com/account/api-keys
config :ex_openai,
  api_key: S