Claude Terminal banner
munkyfoot munkyfoot

Claude Terminal

AI community

Description

A command-line interface for chatting with Anthropic's Claude AI assistant, with optional long-term memory and cross-platform support.

Installation

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

README

Claude Terminal

Claude Terminal is a Python-based command-line interface (CLI) tool that allows you to interact with Anthropic's Claude, an AI assistant. It provides a convenient way to chat with Claude and get assistance with various tasks, including terminal commands, code, and other queries. Claude Terminal supports function calling, which enables the writing and reading of files based on user interactions.

Features

  • Chat with Claude directly from your terminal
  • Get assistance with terminal commands specific to your platform (Linux, Windows, or macOS)
  • Receive help with code and other queries
  • Optionally store conversation history to improve responses over time
  • Function calling support, enabling file writing and reading based on user interactions
  • Ability to switch between Claude models (Sonnet and Opus) for better responses
  • Option to show Claude all files and directories in the current directory (except those specified in the .gitignore file)

Prerequisites

  • Python 3.7 or higher
  • pip (Python package installer)
  • Anthropic API key

Installation

  1. Clone the repository:
git clone https://github.com/Munkyfoot/claude-terminal.git
  1. Navigate to the project directory:
cd claude-terminal
  1. Create a virtual environment:
python -m venv venv
  1. Activate the virtual environment:
  • For Linux/macOS:
source venv/bin/activate
  • For Windows:
venv\Scripts\activate
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Rename .env.example to .env:
mv .env.example .env
  • Then open the .env file in a text editor and add your Anthropic API key:
ANTHROPIC_API_KEY="YOUR_API_KEY"

Usage

To run Claude Terminal, use the following command:

python main.py [query] [flags]
  • query: Optional initial query to start the conversation
  • flags:
    • --memory or -m: Save/load conversation history to add long-term m