
Security News
vlt 1.5.0 Adds Agent Skills Management
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.
openai-cli-tools
Advanced tools
A CLI App for OpenAI Models is a command line interface app that allows users to easily interface with OpenAI models and services. It provides an intuitive chatbot UI, a suite of tools for use in the terminal, and a REST API. Users must provide their own API session and API keys to use the app. It is designed to make it easy to explore and use OpenAI's models and services, and is suitable for developers, data scientists, and anyone who wishes to use OpenAI's services.
This includes a web server for chatting and managing prompts, and a REST API for interacting with the app.
You can install via npm for use in other tool chains or simply clone this repository if you want to use it as standalone.
npm install -g openai-cli-tools
git clone https://github.com/AxelRothe/openai-cli-tools.git openai-cli-tools
You will need to build the app before you can use it. This will create a build folder with the compiled app.
#build
npm run build
#build and run with server
npm run server
#just start cli, will display help
npm run start
#start cli
node build
#start interactive cli
node build chat
#prompt cli and get response as JSON
node build prompt "my prompt" --temperature 0.5 --max_tokens 100 --model "text-davinci-003" --json
#start cli with server
node build server
#start cli with server and port
node build server --port 3000
prompt and chat are all available as REST endpoints. The server is available at http://localhost:8000 by default, and can be changed with the --port flag or by setting it in the .env file.
The app requires an OpenAI API key and session to be set in the .env file. The .env file is not included in the repo, and must be created by the user. The .env file should be placed in the root directory of the project. The .env file should contain the following:
OPENAI_API_KEY="<YOUR_API_KEY>"
OPENAI_API_SESSION_TOKEN="<SESSION_TOKEN>"
SERVER_PORT="8000"
SERVER_PATH_CACHE="/path/to/cache"
SERVER_TOKENS="/path/to/cache/tokens.json"
Authorization:
GET /api/auth
headers {
Authorization: "Bearer <YOUR_TOKEN>",
}
You will need to add a Authorization Token via the Bearer in order to connect to the REST API, use /api/auth with GET to check if your token is valid. Tokens are set in an array in your SERVER_TOKENS file.
Example:
[
"1234",
"5678",
"9012"
]
Run a prompt with the following endpoint:
POST /api/prompt
{
"prompt": "my prompt",
"temperature": 0.5,
"max_tokens": 100,
"model": "text-davinci-003"
}
Create a new chat. Returns a JSON object with the prompt ID and the prompt text.
POST /api/chat/new -> returns id
{
"prompt": "my prompt",
"temperature": 0.5,
"max_tokens": 100,
"model": "text-davinci-003"
}
Continue on the thread with the id returned from the previous request.
POST /api/chat/:id
{
"prompt": "my message",
"temperature": 0.5,
"max_tokens": 100,
"model": "text-davinci-003"
}
Get the chat and its history
GET /api/chat/:id
Removes the entire chat from the server
DELETE /api/chat/:id
Removes the last record in the chat
DELETE /api/chat/:id/last
Instructions for how others can contribute to your project, such as:
git checkout -b new-feature)git commit -am 'Add new feature')git push origin new-feature)GPL-3.0 License
Copyright (c) 2023 Axel Rothe
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY.
FAQs
provides an easy interface for interacting with the OpenAI API
The npm package openai-cli-tools receives a total of 0 weekly downloads. As such, openai-cli-tools popularity was classified as not popular.
We found that openai-cli-tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.

Security News
Rust 1.100 will add opt-in dependency cooldowns to Cargo, giving security scanners and maintainers time to catch malicious crate releases.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.