Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nexus CLI - AI Chat

A basic CLI application for having conversations with AI using the Vercel AI SDK v5.

Setup

  1. Install dependencies:

    npm install
  2. Configure API Key:

    Copy .env.example to .env and add your OpenAI API key:

    cp .env.example .env

    Then edit .env and replace your_api_key_here with your actual OpenAI API key.

    Get your API key from: https://platform.openai.com/api-keys

Usage

Start the chat:

npm start

Commands:

  • Type your message and press Enter to chat
  • Type exit or quit to end the conversation

Features

  • Interactive CLI conversation
  • Maintains conversation history throughout the session
  • Uses OpenAI's GPT-4o-mini model via Vercel AI SDK v5
  • MCP Integration: Connects to Civic MCP server (nexus.civic.com) via StreamableHTTP
  • Automatically loads and uses tools from the MCP server
  • API key configurable via .env file or prompted at runtime

Development

Run in watch mode:

npm run dev

Build TypeScript:

npm run build

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages