0.1.5 • Published 4 months ago
@vhxnif/ifcli v0.1.5
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>
Key | Value |
---|---|
OPENAI_API_KEY | \<your_deepseek_key> |
OPENAI_BASE_URL | https://api.deepseek.com |
IFCLI_CUSTOM_MODELS | \<model1>,\<model2> |
IFCLI_DEFAULT_MODEL | deepseek-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 Path | Platform |
---|---|
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.