Offline(local) AI Client Command to run Programable Prompt Engine script
npm install @offline-ai/cli-plugin-core> γEnglish|δΈζγ
---
The Offline AI Client core plugin.



Features:
* User-friendly for ai development and creation of intelligent applications...
* Low-code or even no-code solutions for rapid ai development...
* Flexible, adding custom instructions within scripts, and inter-script calls...
* The data is completely open to the script, and the input and output data, even the internal data, can be freely accessed in the script
* Powerful, enabling event transmission seamlessly between client and server with numerous utility functions...
* Secure, supporting encrypted execution and usage limits for scripts(TODO)...
* The AI Agent Script follows the Programmable Prompt Engine Specification.
* Visit the site for the detailed AI Agent script usage.
* Offline AI Client Core(WIP)
* Install
* Commands
* Credit
``bash`
npm install -g @offline-ai/cli
* [ai run [FILE] [DATA]](#ai-run-file-data)
π» Run ai-agent script file.
`
USAGE
$ ai run [FILE] [DATA] [--json] [--config
[--histories
[-P
ARGUMENTS
FILE the script file path, or the json data when -f switch is set
DATA the json data which will be passed to the ai-agent script
FLAGS
-A, --aiPreferredLanguage=
automatically, eg, en, etc.
-C, --streamEchoChars=
-D, --data=
-L, --userPreferredLanguage=
automatically, eg, en, zh, ja, ko, etc.
-P, --provider=
-a, --arguments=
-b, --brainDir=
-d, --dataFile=
-e, --streamEcho=
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
π» Run ai-agent script file.
Execute ai-agent script file and return result. with -i to interactive.
EXAMPLES
$ ai run -f ./script.yaml "{content: 'hello world'}" -l info
βββββββββββββββββββββ
β[info]:Start Script: ...
``
_See code: src/commands/run/index.ts_