npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@starascendin/kortex-agent-cli

v0.1.0

Published

CLI for Kortex's direct Agent API, intended for OpenClaw and other agent runtimes.

Readme

@starascendin/kortex-agent-cli

Simple CLI for Kortex's direct JSON Agent API.

This package is intended for agent runtimes such as OpenClaw that should talk to Kortex over the direct /agent-api surface instead of MCP.

What it does

  • discovers available Kortex operations
  • fetches API metadata
  • invokes a single operation with JSON input
  • prints JSON to stdout for easy agent consumption

Requirements

Provide:

  • KORTEX_AGENT_URL or KORTEX_API_URL
  • KORTEX_API_KEY

The URL can be either:

  • the Convex site root, for example https://your-deployment.convex.site
  • the full API path, for example https://your-deployment.convex.site/agent-api

The CLI normalizes the URL automatically.

Local usage

From the repo root:

pnpm --filter @starascendin/kortex-agent-cli build
node packages/agent-cli/dist/index.js info --url https://your-deployment.convex.site --api-key krtx_xxx
node packages/agent-cli/dist/index.js operations --url https://your-deployment.convex.site --api-key krtx_xxx
node packages/agent-cli/dist/index.js call list_companies --url https://your-deployment.convex.site --api-key krtx_xxx --input '{"limit":10}'

Build the package:

pnpm --filter @starascendin/kortex-agent-cli build

Then run the built binary:

node packages/agent-cli/dist/index.js info --url https://your-deployment.convex.site --api-key krtx_xxx
node packages/agent-cli/dist/index.js operations --url https://your-deployment.convex.site --api-key krtx_xxx
node packages/agent-cli/dist/index.js call list_companies --url https://your-deployment.convex.site --api-key krtx_xxx --input '{"limit":10}'

Commands

info

Returns API metadata and the operations available to the supplied key.

kortex-agent info --url <URL> --api-key <KEY>

operations

Returns the operation list and input schemas available to the supplied key.

kortex-agent operations --url <URL> --api-key <KEY>

call

Invokes one Kortex operation.

kortex-agent call <operation> --url <URL> --api-key <KEY> [--input <JSON|@file|->]

Input modes:

  • inline JSON: --input '{"limit":10}'
  • file: --input @payload.json
  • stdin: --input -

Optional flags:

  • --compact for compact JSON output

Examples

Inline JSON:

node packages/agent-cli/dist/index.js call search_companies --url https://your-deployment.convex.site --api-key krtx_xxx --input '{"query":"openai","limit":5}'

From a file:

node packages/agent-cli/dist/index.js call update_company --url https://your-deployment.convex.site --api-key krtx_xxx --input @payload.json

From stdin:

cat payload.json | node packages/agent-cli/dist/index.js call create_note --url https://your-deployment.convex.site --api-key krtx_xxx --input -

OpenClaw skill

The OpenClaw-oriented skill for this CLI lives at:

packages/agent-cli/skills/kortex-agent-api/SKILL.md

Use that skill when you want an OpenClaw agent to operate against Kortex through the direct Agent API with read-before-write discipline and scoped mutations.

Install from npm

Once published, install it with:

npm install -g @starascendin/kortex-agent-cli

Then run:

kortex-agent info --url https://your-deployment.convex.site --api-key krtx_xxx

Publishing

This package is set up to publish from GitHub Actions via npm trusted publishing.

Workflow:

  • .github/workflows/publish-agent-cli.yml

Publish paths:

  • manually via GitHub Actions workflow_dispatch
  • automatically on tags matching agent-cli-v*

Before the workflow can publish successfully, configure trusted publishing in npm for:

  • package: @starascendin/kortex-agent-cli
  • repository: this GitHub repo
  • workflow: publish-agent-cli.yml
  • branch or environment: typically main

Release flow:

  1. Bump packages/agent-cli/package.json version.
  2. Merge to main.
  3. Either run the workflow manually, or push a tag like agent-cli-v0.1.0.