Shellcheck
by code.halowerk.com in Developer tools
Lint a shell script with the real ShellCheck 0.11.0: every finding with SC code, severity, line/column range, message and wiki link, plus an optional auto-fix diff. Runs the official statically linked ShellCheck 0.11.0 release binary (GPL-3.0, SHA-256 checked against the GitHub release digest) on your script in an isolated, resource-limited child process without network, shell or configuration files (--norc, sourced files are never followed).
https://code.halowerk.com/v1/shellcheck- Price
- $0.003
- per call in USDC
- Uptime
- 96.7%
- last 30 days
- Response time
- 126 ms
- 197 ms slowest 5%
- Last check
- Passed
- 4 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://code.halowerk.com/v1/shellcheck
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://code.halowerk.com/v1/shellcheck
content-type: application/json
{
"fix": true,
"script": "#!/bin/bash\nfor f in $(ls *.txt); do\n cat $f\ndone\n"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
enable | array of string | No | |
exclude | array of string | No | |
fix | boolean | No | Default: false. |
script | string | Yes | |
severity | string | No | One of: error, warning, info, style. Default: "style". |
shell | string | No | One of: sh, bash, dash, ksh, busybox. |
Example response
The provider's example. We can't check it without paying.
Example response, 49 lines
{
"result": {
"clean": false,
"counts": {
"error": 1,
"info": 2
},
"findings": [
{
"code": "SC2045",
"column": 10,
"end_column": 21,
"end_line": 2,
"fixable": false,
"level": "error",
"line": 2,
"message": "Iterating over ls output is fragile. Use globs.",
"wiki": "https://www.shellcheck.net/wiki/SC2045"
},
{
"code": "SC2035",
"column": 15,
"end_column": 16,
"end_line": 2,
"fixable": false,
"level": "info",
"line": 2,
"message": "Use ./*glob* or -- *glob* so names with dashes won't become options.",
"wiki": "https://www.shellcheck.net/wiki/SC2035"
},
{
"code": "SC2086",
"column": 7,
"end_column": 9,
"end_line": 3,
"fixable": true,
"level": "info",
"line": 3,
"message": "Double quote to prevent globbing and word splitting.",
"wiki": "https://www.shellcheck.net/wiki/SC2086"
}
],
"fix_diff": "--- a/script.sh\n+++ b/script.sh\n@@ -1,4 +1,4 @@\n #!/bin/bash\n for f in $(ls *.txt); do\n- cat $f\n+ cat \"$f\"\n done\n\n",
"shell": "bash",
"tool": "ShellCheck 0.11.0"
},
"service": "shellcheck",
"status": "success"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://code.halowerk.com/v1/shellcheck' \
-H 'content-type: application/json' \
--data-raw '{"fix":true,"script":"#!/bin/bash\nfor f in $(ls *.txt); do\n cat $f\ndone\n"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://code.halowerk.com/v1/shellcheck' \
-H 'content-type: application/json' \
--data-raw '{"fix":true,"script":"#!/bin/bash\nfor f in $(ls *.txt); do\n cat $f\ndone\n"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fcode.halowerk.com%2Fv1%2Fshellcheck&method=POST
const res = await pay("https://code.halowerk.com/v1/shellcheck", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"fix": true,
"script": "#!/bin/bash\nfor f in $(ls *.txt); do\n cat $f\ndone\n"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://code.halowerk.com/v1/shellcheck",
json={
"fix": True,
"script": "#!/bin/bash\nfor f in $(ls *.txt); do\n cat $f\ndone\n",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 126 ms | $0.003 |
| 14 h ago | Passed | 402 | 1.6 s | $0.003 |
| 25 h ago | Passed | 402 | 139 ms | $0.003 |
| 35 h ago | Passed | 402 | 197 ms | $0.003 |
| 45 h ago | Passed | 402 | 129 ms | $0.003 |
Show 10 older checks
| 2 days ago | Passed | 402 | 139 ms | $0.003 |
| 3 days ago | Passed | 402 | 135 ms | $0.003 |
| 5 days ago | Timed out | - | - | - |
| 6 days ago | Passed | 402 | 120 ms | $0.003 |
| 7 days ago | Passed | 402 | 122 ms | $0.003 |
| 7 days ago | Passed | 402 | 131 ms | $0.003 |
| 7 days ago | Passed | 402 | 128 ms | $0.003 |
| 8 days ago | Passed | 402 | 39 ms | $0.003 |
| 8 days ago | Passed | 402 | 112 ms | $0.003 |
| 8 days ago | Passed | 402 | 115 ms | $0.003 |