Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/shell-quote

Turns up to 50 literal strings into a safely quoted argument for bash/sh (POSIX single-quote method), PowerShell (single-quoted literal) and cmd.exe, for agents that build a command line from untrusted or free-form text, and parses each result back with a model of that shell's rules to prove it yields the original string. It returns `unsupported` for strings cmd.exe cannot carry safely (line break

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/shell-quote

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/shell-quote", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"values":["it's a $HOME; rm -rf /","C:\\Program Files\\app\\","50% off","plain-text.txt"]}),
});
console.log(await res.json());

Example input

{
  "values": [
    "it's a $HOME; rm -rf /",
    "C:\\Program Files\\app\\",
    "50% off",
    "plain-text.txt"
  ]
}