frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•9mo 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•9mo 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•9mo 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.

Show HN: Black Hole Universe Simulator (seeking collaborators)

https://github.com/pongtse822-rgb/V6-Black-Hole-Universe
1•pongtse822•5m ago•0 comments

Show HN: Freeciv 3D with hex map tiles and WebGPU renderer

https://github.com/freecivworld/freecivworld
1•roschdal•8m ago•0 comments

Text classification with Python 3.14's ZSTD module

https://maxhalford.github.io/blog/text-classification-zstd/
1•alexmolas•12m ago•0 comments

Castle Engine: Upgrade to GTK 3

https://castle-engine.io/wp/2026/02/09/upgrade-to-gtk-3/
1•mariuz•16m ago•0 comments

SETI program is chasing down its final 100 signals

https://www.space.com/space-exploration/search-for-life/this-seti-program-is-chasing-down-its-fin...
2•belter•17m ago•0 comments

Portugal builds Europe's first dedicated drone carrier

https://www.euronews.com/2026/01/29/portugal-builds-europes-first-dedicated-drone-carrier-d-joao-ii
1•belter•18m ago•0 comments

Poison2

https://rnsaffn.com/poison2/
1•thunderbong•20m ago•0 comments

ntsc-rs, open-source video effect which emulates analog TV and VHS artifacts

https://ntsc.rs/
1•QuantumNomad_•20m ago•0 comments

European Alternatives to American Apps

https://blog.uniqkey.eu/resources/european-alternatives/
2•utsavchopra•21m ago•2 comments

1D Cellular Automata Playground

https://paraschopra.github.io/1d-ca/
1•paraschopra•24m ago•0 comments

Discussion: Seedance-style AI video generation workflows

1•littlepp•24m ago•0 comments

A read-only IMAP client for Wear OS

https://github.com/cmader/MailReader
2•TrevorOkmonic•25m ago•0 comments

Iraq War Oil Oped

https://www.cnn.com/2013/03/19/opinion/iraq-war-oil-juhasz
1•marysminefnuf•25m ago•0 comments

Ahead-of-Time Automatic Differentiation in Python

https://github.com/Eshaancoding/ad
1•eshaanb•26m ago•1 comments

Reading Buffer statistics in EXPLAIN output

https://boringsql.com/posts/explain-buffers/
1•radimm•27m ago•0 comments

Subtle thermal factors I didn't expect when testing high-power LEDs

2•kashinfilm•30m ago•0 comments

Show HN: CPL – A categorical programming language that runs in the browser

https://msakai.github.io/cpl/
1•msakai•31m ago•0 comments

Companies behind Postgres 18 development

https://theconsensus.dev/p/2026/02/02/companies-behind-postgres-18.html
1•ingve•32m ago•0 comments

The Cost of a Function Call

https://lemire.me/blog/2026/02/08/the-cost-of-a-function-call/
3•ingve•33m ago•0 comments

Show HN: Tiles – yet another Emacs package for note-taking

https://github.com/ctanas/tiles
1•amiralul•34m ago•0 comments

PaperBanana: Generate methodology diagrams and plots from text or references

https://paperbanana.org/
1•codingbuddy•37m ago•0 comments

Is the SaaSpocalypse nigh? The era of paying for software seats may be ending

https://thenewstack.io/dawn-of-a-saaspocalypse/
1•sigalor•37m ago•1 comments

Show HN: I built RSS feeds for podcast guests, not podcasts

https://poddley.com/guests/jordan-peterson/episodes
6•onesandofgrain•38m ago•0 comments

Parsing Database Traffic with eBPF and Finite State Machines (2026)

https://akashmandal001.substack.com/p/ebpf-data-monitoring-protocol-intelligence-layer
1•sniner•39m ago•0 comments

Tell HN: Thoughts on the Future

1•grandimam•41m ago•1 comments

Linux laptop with < 0.3w standby power draw?

4•sam_lowry_•41m ago•0 comments

Japan retrieves rare earth-rich mud from seabed

https://apnews.com/article/japan-rare-earths-china-deep-sea-c97d34522e23ed418cf068f4a0217188
2•toephu2•49m ago•0 comments

The Frankenstyle Project – A painless front end system

https://franken.style/
1•redenfm•51m ago•0 comments

Valve Just Won a Legal Victory [video]

https://www.youtube.com/watch?v=gXXgkh7gUGU
1•chii•55m ago•0 comments

HN: Turn your family memories into a cinematic video

https://familymemories.video
1•tareq_•57m ago•0 comments