Git Product home page Git Product logo

tonyxuedev / gpt-web-terminal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tychozzz/gpt-web-terminal

0.0 0.0 0.0 562 KB

✨ Open ChatGPT with Programmer's Approach! GPT Terminal is a platform that allows you to communicate with GPT in a terminal.

Home Page: https://gpt-terminal.up.railway.app/

License: Apache License 2.0

JavaScript 0.89% TypeScript 56.25% HTML 0.47% Vue 41.46% Dockerfile 0.93%

gpt-web-terminal's Introduction

GPT Terminal

✨ Open GPT like a programmer! Customize your own GPT terminal. ✨

English Doc | 中文文档

Introduction

GPT Terminal is a platform that allows you to have free conversations with GPT in the terminal.

Here, you can easily implement more customized functionalities and have your own GPT terminal!

The project is implemented based on Vue3 and Express.

Deploy on Railway

Preview

Demo Link:https://gpt-terminal.up.railway.app/

gpt-terminal-demo

Features

  • ✨ Support dialogue between command-line terminal and GPT. As programmers, we communicate with GPT in a geeky way!

  • 🌟 Support configuration of API Key (OpenAI API method) and Access Token (Web API method) - either one can be chosen.

  • 🌈 Support DIY of GPT roles and persist them. Have conversations with your exclusive role!

  • ☁️ Support GPT to remember the conversation history and provide commands to query the history. Give your GPT a good memory~

  • 🍀 Support the widely-used Event Stream technology for GPT responses, achieving a typewriter effect~

  • 🌴 Support rendering GPT responses in Markdown format.

  • 🍃 Basic terminal commands such as viewing command history, accessing help manuals, clearing the screen, etc.

Quick Start

You only need to have a basic understanding of using npm to unlock all the features!

  1. Clone the project to your local machine.

    git clone https://github.com/ltyzzzxxx/gpt-web-terminal.git
  2. Navigate to the project directory and install dependencies for the frontend and backend separately.

    cd gpt-web-terminal && npm install
    cd service && npm install
  3. Configure your API Key or Access Token in service/.env. API key takes priority.

    # Choose either API Key (OpenAI API method) or Access Token (Web API method)
    OPENAI_API_KEY=
    OPENAI_ACCESS_TOKEN=
    # Configure reverse proxy address when using Access Token
    API_REVERSE_PROXY=
    
  4. Run the frontend.

    npm run dev
  5. Run the backend.

    npm run start
  6. Quickly unlock command usage - use the help command in the command-line to query the usage.

    # Query all command help
    help
    
    # Query specific command help
    gpt -h
    gpt chat -h
    gpt role -h
    gpt history -h

How to Design Your Own GPT Role?

Use the following command to start the role DIY process

# k - Role unique identifier, e.g., default / cli / sql / ikun
# n - Role name, e.g., Command-line Translation Assistant, SQL-BOY
# d - Role description, e.g., Translate your natural language instructions into Windows/Unix terminal commands
gpt diy <-k GPT role unique identifier> <-n GPT role name> <-d GPT role description>

Special Thanks

This project was inspired by YuIndex,and eventually transformed it into "GPT Terminal".

Open Source License

Apache License Version 2.0 see http://www.apache.org/licenses/LICENSE

gpt-web-terminal's People

Contributors

tychozzz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.