Skip to main content

NeuForge Pay for LlamaIndex (neuforge-llamaindex)

A LlamaIndex Token Counter that enforces the x402 Bounded Overshoot Protocol natively.

⚠️ Pricing & Metering Disclosure This SDK requires an active API key from neuforge.app. It acts as a cloud-metered gateway that tracks your LLM token usage and synchronizes it synchronously with the NeuForge backend via HTTP.

Important: If your NeuForge account balance drops below zero or your budget is exceeded, this SDK will intentionally halt your execution by throwing an HTTP 402 Payment Required exception. You must manage your billing on neuforge.app to ensure uninterrupted service.

Usage

from neuforge_llamaindex import NeuForgeTokenCounter
from llama_index.core import Settings
from llama_index.core.callbacks import CallbackManager

# Initialize with your API Key
meter = NeuForgeTokenCounter(api_key="nf_live_your_api_key_here")
Settings.callback_manager = CallbackManager([meter])

# Indexing and querying will sync with NeuForge Cloud.
# Hits HTTP 402 if budget is exceeded.
index = VectorStoreIndex.from_documents(docs)

Metadata

Release files for neuforge-llamaindex 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuforge-llamaindex 1.0.1
File Size Uploaded Provenance Actions
neuforge_llamaindex-1.0.1.tar.gz 2.7 kB Without provenance Details for neuforge_llamaindex-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neuforge-llamaindex 1.0.1
File Interpreter ABI Platform Actions
neuforge_llamaindex-1.0.1-py3-none-any.whl Python 3 none any Details for neuforge_llamaindex-1.0.1-py3-none-any.whl

Total release size: 6.0 kB

Release files / neuforge_llamaindex-1.0.1.tar.gz

Download URL neuforge_llamaindex-1.0.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6d75efc70d343b73b1247cdf4d6b0ef11bb8e14c21829f646beb5d790c4ee041
BLAKE2b-256 checksum
How to use checksums
ed769fac376edebf9e32bde1ad9e925460149039445e3ee7fd9d0e48124139fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / neuforge_llamaindex-1.0.1-py3-none-any.whl

Download URL neuforge_llamaindex-1.0.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
972e2a4ec7742508287c8b950c1b0ce13eba5e50af5aaa8fbb932f3c1a28ec2d
BLAKE2b-256 checksum
How to use checksums
48ac365da85ed2cc70ecdb93d19e4ee81484a9e58143f7c86cd5491623526b93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for neuforge-llamaindex 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page