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.

Tether EVO Scores Top in Global AI Benchmark for Brain-to-Text AI Challenge

https://tether.io/news/tether-evo-scores-top-5-in-global-ai-benchmark-for-brain-to-text-ai-challe...
1•salkahfi•48s ago•0 comments

As AI takes over the act of "making," where do I go from here?

https://medium.com/@kohii/software-creation-replaced-by-ai-where-do-i-go-from-here-66f9869aa511
1•kohii•1m ago•1 comments

The Curious Genius of Amar Bose

https://www.popsci.com/science/article/2013-07/curious-genius-amar-bose/
1•samdung•2m ago•0 comments

Show HN: I built a Telegram bot that converts any article URL to audio

https://sornic.com
1•digi_wares•3m ago•0 comments

How We Cut Our Cloudflare Worker Test Suite from 80s to 24s

https://stumpy.ai/blog/cloudflare-vitest-barrel-trick
1•bluesnowmonkey•3m ago•0 comments

No One, Including Furry Friends, Will Be Safer in Ring's Surveillance Nightmare

https://www.eff.org/deeplinks/2026/02/no-one-including-our-furry-friends-will-be-safer-rings-surv...
1•voxadam•4m ago•0 comments

HelpingLusers

http://meatballwiki.org/wiki/HelpingLusers
1•themaxdavitt•4m ago•0 comments

Why HN is a decade behind on crypto [video]

https://www.youtube.com/undefined
1•nailer•4m ago•0 comments

Prompting Best Practices for Instruction-Following Rerankers

https://www.zeroentropy.dev/articles/prompting-best-practices-for-instruction-following-rerankers
1•medbar•5m ago•0 comments

A Customizable Coding Agent: custom tools, Python API, and any local/cloud LLM

https://github.com/wiseprobe/patchpal
1•wiseprobe•5m ago•1 comments

Show HN: Automatic demo videos for every feature you ship

https://waitlist.buildshot.xyz/?source=HN
1•pratikpatwe•6m ago•0 comments

Why Your Agent Needs a Principles.md File

https://twitter.com/atlasforgeai/status/2021773566341988758
1•gmays•8m ago•0 comments

HanziFive – Daily HSK graded articles in Chinese

https://www.hanzifive.com/
1•vmeklis•9m ago•0 comments

Show HN: ShortGuard – Apple rejected my app for blocking Shorts, so here it is

https://testflight.apple.com/join/eTKmdWCU
1•justdodo•9m ago•0 comments

Show HN: Hacker Backlinks – Discover which HN stories are cited most in comments

https://hacker-backlinks.browserbox.io
2•keepamovin•12m ago•1 comments

Improving 15 LLMs at Coding in One Afternoon. Only the Harness Changed

http://blog.can.ac/2026/02/12/the-harness-problem/
2•kachapopopow•13m ago•0 comments

Show HN: Artificials – Why AI will create the next human civilization

1•brian_bae_kr•14m ago•0 comments

Why (Senior) Engineers Struggle to Build AI Agents

https://www.philschmid.de/why-engineers-struggle-building-agents
1•tosh•19m ago•0 comments

Rolling your own serverless OCR in 40 lines of code

https://christopherkrapu.com/blog/2026/ocr-textbooks-modal-deepseek/
1•mpcsb•20m ago•0 comments

Ask HN: What electrical engineering textbooks would you recommend?

1•el_oni•20m ago•0 comments

Interpol-backed police make nearly 200 arrests in Amazon gold mining sweep

https://news.mongabay.com/short-article/2026/01/interpol-backed-police-make-nearly-200-arrests-in...
1•PaulHoule•22m ago•0 comments

99%+ of new US capacity in 2026 will be solar, wind and storage

https://electrek.co/2026/01/28/eia-99-of-new-us-capacity-in-2026-will-be-solar-wind-storage/
1•andsoitis•22m ago•0 comments

Tool Shaped Objects

https://twitter.com/willmanidis/status/2021655191901155534
1•gmays•24m ago•0 comments

ClawCam was this a bad idea?

https://chrisdrake.com/ClawCam.png
1•cndg•25m ago•0 comments

Show HN: Browse any IP address like a profile page

https://ipdata.co/me
1•jonathan-kosgei•26m ago•0 comments

Show HN: IP ranges for 22 cloud providers in 12 formats, updated daily

1•rezmoss•26m ago•0 comments

Porting an INT8 VHDL CNN from Intel Agilex 3 to Lattice Certus-NX

1•smart_coconut•27m ago•0 comments

Run Pebble OS in Browser via WASM

https://ericmigi.github.io/pebble-qemu-wasm/
1•goranmoomin•27m ago•0 comments

Robotaxis and AI-Hardness (2022)

https://www.vangemert.dev/blog/robotaxis-and-AI-hardness
2•engelo_b•29m ago•0 comments

Apache Arrow is 10 years old

https://arrow.apache.org/blog/2026/02/12/arrow-anniversary/
3•tosh•30m ago•0 comments