AI CLI
aichat
aichat all-in-one CLI tool for 10+ AI platforms
All-in-one CLI tool for 10+ AI platforms, including OpenAI, Gemini, Claude, Mistral, LocalAI, Ollama, VertexAI, Ernie, Qianwen…
# MY AICHAT CONFIG
# https://github.com/sigoden/aichat/blob/601288029dd7affa2115547a70c74b21d2003b66/config.example.yaml
# `cat ~/.config/aichat/config.yaml`
# `cat ~/Library/Application\ Support/aichat/config.yaml`
# $> aichat --info
# $> aichat --list-sessions
#
# TMUX
# further info about tmux sockets/servers in .tmux.conf file
# `tmux -L aichat a`
# `tmux -L aichat new`
# `tmux -L aichat ls`
model: gemini # LLM model
# temperature is a parameter that influences the “randomness” of the response
# generated by your language model. It typically ranges from 0 to 1, but in
# some instances, you can bring the temperature beyond 1.
temperature: 0.5 # GPT temperature, between 0 and 2
clients:
# all clients configuration
# https://github.com/sigoden/aichat/blob/601288029dd7affa2115547a70c74b21d2003b66/config.example.yaml
# see https://ai.google.dev/docs
- type: gemini
api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# login via Kindle Google Gmail
# https://platform.openai.com/usage
# https://platform.openai.com/account/api-keys
# https://help.openai.com/
- type: openai
name: kindle-gmail
api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# see https://cloud.google.com/vertex-ai
- type: vertexai
# global locations - regions & zones
# https://cloud.google.com/about/locations
api_base: https://{REGION}-aiplatform.googleapis.com/v1/projects/{PROJECT_ID}/locations/{REGION}/publishers/google/models
#
# setup Application Default Credentials (ADC) file, optional field
# run `gcloud auth application-default login` to setup adc
# see https://cloud.google.com/docs/authentication/external/set-up-adc
adc_file: <path-to/gcloud/application_default_credentials.json>
# aichat --info
# see https://docs.anthropic.com/claude/reference/getting-started-with-the-api
- type: claude
api_key: sk-xxx
# https://chat.mistral.ai/
- type: mistral
api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# AICHAT Installation
# for rust programmer
cargo install aichat@0.14.0
cargo install aichat --list
# macOS homebrew or a linuxbrew user
brew install aichat
# for android Termux user
pkg install aichat
# ...
# https://github.com/sigoden/aichat
# https://github.com/sigoden/aichat/blob/main/config.example.yaml
# https://github.com/sigoden/aichat/blob/601288029dd7affa2115547a70c74b21d2003b66/config.example.yaml
# `cat ~/.config/aichat/config.yaml`
# `cat ~/Library/Application\ Support/aichat/config.yaml`
aichat --info
aichat --list-sessions