0.1.5 • Published 4 months ago

@vhxnif/ifcli v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

ifcli

Install

# install bun
npm install -g bun

From NPM

npm install -g @vhxnif/ifcli

From Source Code

bun install && 
bun run build && 
bun link

Config

export OPENAI_API_KEY=<your_deepseek_key>
KeyValue
OPENAI_API_KEY\<your_deepseek_key>
OPENAI_BASE_URLhttps://api.deepseek.com
IFCLI_CUSTOM_MODELS\<model1>,\<model2>
IFCLI_DEFAULT_MODELdeepseek-chat

Command

chat

Usage: ifct [options] [command]

ifcli chat with LLM

Options:
  -V, --version     output the version number
  -h, --help        display help for command

Commands:
  new <string>      new chat
  ask <string>      talk with agent
  list              list all chats
  history           history questions
  remove            remove chat
  change            change to another chat
  prompt [options]  prompt manager
  config [options]  manage current chat configuration
  clear             clear the current chat message
  help [command]    display help for command

mcp tools support

Config PathPlatform
Windows$APPDATA/ifcli/mcp.json
Mac$HOME/.config/ifcli/mcp.json
Linux$HOME/.config/ifcli/mcp.json
[
  {
    "type": ["tools"],
    "name": "weather",
    "version": "v1",
    "command": "node",
    "args": ["D:\\workspace\\other\\weather\\build\\index.js"]
  }
]
MCP Using Example
# Single Version
ifct ask "@weather What's the weather today?"

# Multi Version
ifct ask "@weather:v1 What's the weather today?"

This project was created using bun init in bun v1.1.36. is a fast all-in-one JavaScript runtime.