← Back to Skills Marketplace
agnicpay-prog

Agnic AI Gateway

by Agnic.AI · GitHub ↗ · v2.0.2 · MIT-0
cross-platform ⚠ suspicious
118
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install ai-gateway
Description
Access 340+ AI models via the Agnic AI Gateway -- chat, image generation, model listing. Use when the user wants to chat with AI, generate images, ask GPT, u...
README (SKILL.md)

AI Gateway

Access 340+ AI models (OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, and more) through the Agnic AI Gateway. Costs are deducted from your USDC balance per token. Free models available for development.

Authentication

Run npx agnic@latest status --json to verify. If not authenticated:

  • Headless (CI/server/agent): Set AGNIC_TOKEN env var or pass --token \x3Ctoken>
  • Interactive (has browser): Run npx agnic@latest auth login

See the authenticate-wallet skill for details.

Commands

List models

npx agnic@latest ai models [--provider \x3Cname>] [--search \x3Cterm>] [--json]

Chat with a model

npx agnic@latest ai chat --model \x3Cprovider/model-name> --prompt "\x3Ctext>" [--system "\x3Ctext>"] [--json]

Generate an image

npx agnic@latest ai image --prompt "\x3Ctext>" [--aspect-ratio 16:9] [--output file.png] [--json]

Models use provider/model-name format (e.g., openai/gpt-4o, meta-llama/llama-3.3-70b). See reference/models-and-options.md for full model list, all options, and input validation rules.

Examples

# List OpenAI models
npx agnic@latest ai models --provider openai --json

# Chat with GPT-4o
npx agnic@latest ai chat --model openai/gpt-4o --prompt 'Explain quantum computing in one sentence'

# Use a free model
npx agnic@latest ai chat --model meta-llama/llama-3.3-70b --prompt 'What is 2+2?' --json

# Generate an image
npx agnic@latest ai image --prompt 'A sunset over mountains' --output sunset.png

# Generate widescreen image
npx agnic@latest ai image --prompt 'Cyberpunk cityscape' --aspect-ratio 16:9 --output city.png

Prerequisites

  • Must be authenticated (npx agnic@latest status to check)
  • Wallet must have USDC balance (free models available for testing)

Error Handling

Common errors:

  • "Not authenticated" -- Run npx agnic@latest auth login or set AGNIC_TOKEN
  • "Insufficient balance" -- Fund wallet at app.agnic.ai
  • "Model not found" -- Check available models with npx agnic@latest ai models
  • "No image returned" -- Try a different model or rephrase the prompt
  • "Rate limit exceeded" -- Wait a moment and retry
Usage Guidance
This skill appears to be a thin wrapper around the Agnic CLI and is coherent with its stated purpose, but proceed with caution. Key things to consider before installing or running it in a sensitive environment: - Metadata/manifest mismatch: SKILL.md says you may need AGNIC_TOKEN, but the registry metadata does not declare it. Treat AGNIC_TOKEN as a sensitive credential and avoid placing it in a shared/global environment until you verify scope. - npx@latest risk: The skill runs npx agnic@latest which will fetch and execute code from npm at runtime. Prefer a pinned, audited version or inspect the package source (repo/homepage) before using. Running unpinned npx commands can execute arbitrary code if the package is compromised. - Unknown source: There is no homepage or repo listed. Verify the npm package owner, repository, and package contents (or run in an isolated/ephemeral environment) before giving it credentials or payment funds. - Payment implications: The gateway charges USDC from a wallet. Use a dedicated test wallet with limited funds for initial trials and confirm billing behavior on app.agnic.ai. - Safer alternatives: If you must use this during automation, pin the CLI version (npx [email protected]) or vendor the CLI binary after manual review; avoid long-lived token exposure; consider running commands in a sandbox/container. If you want, I can: (a) show how to inspect the agnic npm package before running it, (b) draft a minimal wrapper that pins a specific version, or (c) produce guidance for creating a temporary wallet and limited-scope token for testing.
Capability Analysis
Type: OpenClaw Skill Name: ai-gateway Version: 2.0.2 The skill provides a legitimate interface to the Agnic AI Gateway via the 'agnic' CLI tool. It includes proactive security instructions in 'reference/models-and-options.md' that direct the AI agent to perform input validation and shell-escaping to prevent command injection. No indicators of data exfiltration, malicious persistence, or harmful prompt injection were found.
Capability Tags
cryptorequires-walletrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
The skill description (access Agnic Gateway to list/chat/generate images across many models) matches the commands shown (npx agnic ai ...). Requiring an Agnic auth token and a USDC-backed wallet is coherent with the payment model. However, the package source is unknown (no homepage) and the metadata declares no required env vars even though SKILL.md instructs use of AGNIC_TOKEN — a documentation/metadata mismatch.
Instruction Scope
SKILL.md instructs the agent to run npx agnic@latest commands (status, auth, ai chat/image/models) and gives input-validation guidance (good). It also tells the agent how to authenticate (AGNIC_TOKEN or interactive login). The instructions do not attempt to read unrelated system files, but they do rely on executing external code fetched at runtime via npx, which can run arbitrary code and is therefore a scope/risk consideration.
Install Mechanism
There is no install spec in the registry, but runtime usage relies on npx agnic@latest which downloads and executes the latest package from npm each run. Dynamic installs from npm (unversioned @latest) are higher risk because package content can change and execute arbitrary code; the skill does not recommend or pin a specific, audited version or provide a repository/homepage to verify.
Credentials
SKILL.md expects AGNIC_TOKEN for headless auth and mentions a USDC-backed wallet (payment). The registry metadata lists no required env vars or primary credential — this mismatch reduces transparency. Requesting an auth token and wallet access is proportionate to the stated functionality, but the skill should declare AGNIC_TOKEN (and describe its scope) in metadata. Storing/using payment credentials or long-lived tokens in shared agent environments has obvious sensitivity.
Persistence & Privilege
The skill is not always-enabled and does not request elevated persistence. disable-model-invocation is false (normal). There is no indication it modifies other skills or system-wide configs.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ai-gateway
  3. After installation, invoke the skill by name or use /ai-gateway
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.2
v2.0.2 — Synced with upstream agnic-wallet-skills: - Added context: fork for execution isolation - Added reference/models-and-options.md for progressive disclosure - Standardized authentication (browser OAuth + headless AGNIC_TOKEN) - Tightened descriptions for AI agent discovery
v1.0.0
Initial publish of AI Gateway for Agnic wallet agent.
Metadata
Slug ai-gateway
Version 2.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Agnic AI Gateway?

Access 340+ AI models via the Agnic AI Gateway -- chat, image generation, model listing. Use when the user wants to chat with AI, generate images, ask GPT, u... It is an AI Agent Skill for Claude Code / OpenClaw, with 118 downloads so far.

How do I install Agnic AI Gateway?

Run "/install ai-gateway" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agnic AI Gateway free?

Yes, Agnic AI Gateway is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Agnic AI Gateway support?

Agnic AI Gateway is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agnic AI Gateway?

It is built and maintained by Agnic.AI (@agnicpay-prog); the current version is v2.0.2.

💬 Comments