frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

Tell HN: I picked up knitting while waiting for my AI agent to complete

1•amelius•1m ago•0 comments

Susanna Clarke: in defence of fantasy fiction

https://observer.co.uk/culture/books/article/susanna-clarke-in-defence-of-fantasy-fiction
1•paulpauper•1m ago•0 comments

Show HN: Correct Hooks – Easy webhook auth with asymmetric signatures

https://github.com/handlewithcarecollective/correct-hooks
1•pdiffles•1m ago•0 comments

Modernizing ArXiv Technology: Updates on the ArXiv-CE Project

https://blog.arxiv.org/2026/10/17/modernizing-arxiv-technology-updates-on-the-arxiv-ce-project/
1•the-mitr•1m ago•0 comments

Chartbook 478 Money and Empire – For Perry Mehrling

https://adamtooze.substack.com/p/chartbook-478-money-and-empire-for
1•paulpauper•2m ago•0 comments

Building Fast Filesystems for VMs

https://modal.com/blog/vm-sandbox-filesystem
1•birdculture•4m ago•0 comments

'I'm on a War Footing': Terry Tao and the Crisis in Math

https://www.nytimes.com/2026/10/16/us/math-ai-terence-tao.html
2•ent101•5m ago•0 comments

Show HN: HedgePick – nine AI agents that argue against your stock thesis

https://hedgepick.com/
1•joegahagan•7m ago•0 comments

Show HN: Serving static assets with 4.5x higher throughput using eBPF

https://github.com/lerboe/beeper
1•lbrndnr•8m ago•0 comments

Show HN: We bought terafabs.si so Elon couldn't and made an arcade game

https://www.terafabs.si/
1•KanishkIndia•8m ago•0 comments

Someone Behind the Software

https://karrisaarinen.com/posts/someone-behind-the-software/
3•tosh•9m ago•0 comments

Muse, dots, Instinct, and the question every agent will be asked

https://twitter.com/worldnetwork/status/2105989118287134752
1•gmays•14m ago•0 comments

Would you switch credit cards for your rewards on your AI spend?

1•mhutchw•16m ago•0 comments

Vertick – built with DominoKit and agentic AI

https://dominokit.com/vertick/
1•vegegoku•18m ago•0 comments

The Intel 8087 chip: floating-point addition and subtraction

https://www.righto.com/2026/10/8087-addition-subtraction-microcode.html
3•pwg•20m ago•0 comments

Show HN: A GitHub contribution for my newborn's feedings, turned into SaaS

https://milo.baby
2•kilianciuffolo•21m ago•2 comments

PhoneBot

https://arxiv.org/abs/2610.08737
1•bookofjoe•22m ago•0 comments

Goalia, the Robotic Goalie – Banting Robotics

https://www.banting7200.com/blog/goalia-the-robotic-goalie
1•evo_9•22m ago•0 comments

Show HN: Nanoconsole SGX, a $2 DIY game console from a 15cts microcontroller

https://nanoconsole.codeberg.page/
1•makapuf•22m ago•0 comments

Kaliningrad Oblast

https://en.wikipedia.org/wiki/Kaliningrad_Oblast
1•simonebrunozzi•23m ago•0 comments

Probably the least productive container you'll ever run

https://github.com/ahmubashshir/unemployd/
2•bdeshi•28m ago•0 comments

SPA vs. Hypermedia: A Collaborative Kanban Board Measured Against Planka

https://zweiundeins.gmbh/en/blog/spa-vs-hypermedia-a-collaborative-kanban-board-measured-against-...
2•ciconia•28m ago•0 comments

The Problem with C++ Safety: Why "It Works" Isn't Good Enough

https://www.modernescpp.com/index.php/cpp-and-memory-safety-part-1/
2•jandeboevrie•30m ago•0 comments

Show HN: Wordchute – a word game where every word changes the board

https://wordchute.com
4•codercolin•30m ago•0 comments

Side-Effect Decoherence

https://t3.at/blog/2025-08-28-side-effect-decoherence/
2•andsoitis•31m ago•0 comments

Torvalds use Claude for bottleneck fix, but race discovered

https://thenewstack.io/torvalds-claude-code-kernel/
7•PaulDavisThe1st•32m ago•0 comments

Anarchon – Leaderless cron for multi-instance Node.js services

https://github.com/aristoteliss/anarchon
2•aristoteliss•32m ago•0 comments

Replacing an LLM judge with a deterministic model: 9.2x faster, 4.5x cheaper

https://medium.com/@gbenga-awodokun/building-clinical-ai-agents-with-langchain-and-jev-decision-h...
2•newadays•33m ago•0 comments

Trials and Tribulations of Native Lua Compilation

https://samyeyo.github.io/clx/blog.html
2•_samt_•34m ago•1 comments

Show HN: Pi-cowboy – use Codex, Claude Code, OpenCode as subagents

https://github.com/electric-dragon-80000v/pi-cowboy
2•suoloordi•36m ago•0 comments