Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

api-operator

Latest version: v1.0.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: mohammedelkarsh
0 Stars
0 Forks
2 Versions
41 Downloads
Python Repo language

Scan summary

api-operator was last scanned on 23 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 23 Nov 2026.
  • Findings: No rules fired in version 1.0.0.
  • Downloads: 41 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 23 Nov 2026 No rules fired
0.11.0 23 Nov 2026 No rules fired

No rules fired in 1.0.0

Findings

Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

API Operator — Safe API Agent

Tests PyPI License: MIT Python

Turn any OpenAPI / adapter.yaml into an AI agent that can reason and act on your APIs with policy, dry-run, audit, and quota hooks.

Retrieve (optional later) → Reason → Act — with permission, cost, and audit boundaries.

Works with Laravel, Go, or any REST API. First-class example: laravel-tenant-kit.

Install

pip install api-operator==1.0.0
# optional OpenAI planner
pip install "api-operator[llm]==1.0.0"

Development:

git clone https://github.com/mohammedelkarsh/api-operator.git
cd api-operator
pip install -e ".[dev]"

Quick start

api-operator demo
api-operator tools --adapter mock
api-operator chat --adapter mock --dry-run

Public API demo (no Laravel):

api-operator chat \
  --adapter yaml \
  --config examples/jsonplaceholder-adapter/adapter.yaml \
  --dry-run

What ships in the core

In core In your projects
Agent runtime (plan → policy → quota → execute) adapter.yaml + optional policy.yaml
Dry-run (--dry-run / dry_run=true) OpenAPI specs
AuditSink + redaction API tokens in .env
QuotaGateway hooks Host billing (e.g. tenant-kit meters)
Optional keyword knowledge (L0) Doc paths / per-tenant FAQ
mock + yaml adapters Optional custom adapters

No hard dependency on Laravel, Postgres, or vector DBs. Knowledge is off until you enable it (docs/knowledge.md).

Safe by default

  1. Policy — optional policy.yaml (allow / deny / confirm, session caps, roles)
  2. Dry-run — see the planned tool + upstream request without side effects
  3. Audit — JSONL / injectable sink; secrets redacted
  4. Quota — gate before execute; real billing stays in the host app

Docs: policy · dry-run · audit · quotas · roadmap

Build an adapter without Python

Scaffold
api-operator scaffold-adapter my-api --output examples
# writes adapter.yaml + policy.yaml + README
Generate from OpenAPI

Write methods (POST/PATCH/PUT/DELETE) are marked dangerous. Tag-based abilities are suggested. A draft policy.yaml is written next to the adapter.

api-operator generate-from-openapi openapi.yaml \
  --output adapter.yaml \
  --base-url http://api.example.test \
  --path-prefix /api
Examples
Example Purpose
examples/tenant-kit-adapter/ Laravel Tenant Kit
examples/jsonplaceholder-adapter/ Public REST demo
export TENANT_KIT_API_TOKEN="your-sanctum-token"
api-operator chat \
  --adapter yaml \
  --config examples/tenant-kit-adapter/adapter.yaml \
  --base-url http://laravel-tenant-kit.test

adapter.yaml (minimal)

name: my_project
description: My API adapter
base_url: http://api.example.test

auth:
  type: bearer
  env_token: MY_PROJECT_API_TOKEN

tools:
  - name: list_items
    description: List items
    method: GET
    path: /api/items
    requires_ability: items:read

  - name: create_item
    description: Create item
    method: POST
    path: /api/items
    dangerous: true
    requires_ability: items:write
    parameters:
      title:
        type: string
        required: true
    body:
      title: "{title}"

Optional sibling policy.yaml loads automatically when you pass that adapter path.

HTTP server

api-operator serve --port 8100
POST /v1/chat
{
  "adapter": "yaml",
  "config_path": "examples/tenant-kit-adapter/adapter.yaml",
  "adapter_config": { "token": "YOUR_TOKEN" },
  "message": "list workspaces",
  "abilities": ["workspaces:read"],
  "dry_run": false
}

Tests

pytest -q

Live Tenant Kit (optional):

python scripts/integration_tenant_kit.py
pytest -m integration -q

Configuration

Copy .env.example → .env. Notable vars: API_OPERATOR_PLANNER, API_OPERATOR_POLICY_PATH, API_OPERATOR_AUDIT_PATH, API_OPERATOR_QUOTA_BUDGET, API_OPERATOR_DRY_RUN.

Architecture

api-operator (Safe API Agent)     your hosts
├── plan → policy → quota → act     ├── adapter.yaml + policy.yaml
├── dry-run + audit hooks           ├── OpenAPI
└── mock / yaml adapters            └── Laravel / any REST API

License

MIT — see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases api-operator

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229