A Developer's Journey: Building GPT-in-Terminal, a Side Project That Unlocks the Power of OpenAI's GPT-3 in terminal
Tags: javascript, node, chatgpt, terminal
Published: 2023-04-01 19:08:33

---
title: "A Developer's Journey: Building GPT-in-Terminal, a Side Project That Unlocks the Power of OpenAI's GPT-3 in terminal"
published: true
description: "Introducing GPT-in-Terminal package and factors that led to its creation"
tags: javascript,nodejs,chatGPT,terminal
cover_image: https://digitalpress.fra1.cdn.digitaloceanspaces.com/zv3vsmb/2023/04/gptt-blog-text.png
canonical_url: https://bijishob.com/blog/a-developers-journey-building-gpt-in-terminal-a-side-project-that-unlocks-the-power-of-openais-gpt-3-in-terminal
---
As a developer, I've always been fascinated by the potential of artificial intelligence and natural language processing. When I first learned about OpenAI's GPT-3 language model, I was captivated by its capabilities and knew that it could be a game-changer for developers like me. That's when I decided to embark on an exciting journey to create a user-friendly command-line tool that would make interacting with GPT-3 more accessible and enjoyable.

I chose Node.js as my trusty companion for this adventure, knowing that it's versatility and extensive ecosystem would provide the perfect foundation for my side project. And thus, **GPT-in-Terminal** was born.

Throughout the development process, my primary focus has been on ease of use and seamless integration. To achieve this, I made sure that GPT-in-Terminal could be installed globally with just one simple command:

```bash
npm install -g gpt-in-terminal
```
`Command to install package globally in local machine
`
I also understood the importance of API key management when working with OpenAI's platform. To streamline this process, I devised an intuitive way for users to add their API key directly within the tool:
```bash
terminal-gpt-add-key your_api_key_here
```
`Command to add API key to project configuration
`
To set GPT-in-Terminal apart from other tools out there, I wanted to enhance the user experience by adding **colourful highlights** for chats, prompts, code sections, and important terms. This touch of visual flair not only made interactions more engaging but also improved readability.

As a developer myself, I know how crucial it is to monitor API usage—especially when it comes to managing costs. That's why I incorporated a feature that allows users to check their API key used within specified date ranges:
```bash
terminal-gpt-check-usage start_date_here end_date_here
```
`Command to check API key usage
`
While I'm proud of what I've achieved so far, I believe that there's always room for improvement. GPT-in-Terminal is a work in progress, and I'm committed to enhancing and expanding its features in the future.

I invite you to join me on this ongoing adventure and harness the power of GPT-3 using GPT-in-Terminal. To get started, visit [GPT-in-Terminal's GitHub repository](https://github.com/bijish-js/terminal-gpt?ref=bijishob) and learn more about my [background and passions](https://www.bijishob.com).
Together, let's explore the wonders of AI and natural language processing as we shape the future of GPT-in-Terminal. Happy coding!