
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@ai-assist/openai-apilyzer
Advanced tools
A CLI tool for downloading data from the OpenAI API to facilitate further analysis of usage.
A CLI tool for downloading data from the OpenAI API to facilitate further analysis of usage.
Prerequisite: Install nodejs 18 lts
npx @ai-assist/openai-apilyzer --authorization '<authorization>' --organization '<organization>'
# downloaded
# written to openai-api-usage-2023-02-28-2023-03-30.csv
The CSV file can then be viewed in Excel.

npx @ai-assist/openai-apilyzer -h
Usage: openai-apilyzer [options]
Options:
--authorization <authorization> authorization token
--organization <organization> organization id
--start [start] start date, default is 30 days ago (default: "2023-03-14")
--end [end] end date, default is today (default: "2023-04-13")
--format [format] json/csv format of output, default is json (default: "csv")
--output [output] output file, default is openai-api-usage-{options.start}-{options.end}.{options.format}
--baseUrl [baseUrl] base url of openai api (default: "https://api.openai.com")
--verbose verbose output (default: false)
-V, --version output the version number
-h, --help display help for command
Note that if you are in China or other regions where access to the openai API is not possible, you can use the
--baseUrlparameter to specify a mirror address, such as https://openai.ai-assist.moe, which can be deployed to a Cloudflare Worker at zero cost through the open source project openai-proxy.
FAQs
A CLI tool for downloading data from the OpenAI API to facilitate further analysis of usage.
We found that @ai-assist/openai-apilyzer 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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies