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.

Show HN: Inches to MM converter for manufacturing and hardware checks

https://inches-to-mm.com
1•robot1996•2m ago•0 comments

We Scaled PgBouncer to 4× Higher Throughput

https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres
1•saisrirampur•4m ago•0 comments

Anthropic performing prompt injection on its users

https://old.reddit.com/r/LLMDevs/comments/1udpw9h/just_got_this_response_from_claude_what_is_going/
1•murderfs•4m ago•0 comments

AI CLI that fixes broken dev tool installs

https://murderszn.github.io/sprout/
1•murderszn•9m ago•0 comments

Record-breaking solo rower Kelsey Pfendler arrives in Hawaii

https://www.hawaiinewsnow.com/2026/07/04/record-breaking-solo-rower-kelsey-pfendler-arrives-hawaii/
1•MaysonL•12m ago•0 comments

Show HN: Two-tier-memory – queryable long-term memory for AI coding agents

https://github.com/tadelstein9/two-tier-memory
1•tadelstein•13m ago•0 comments

Ubuntu 24.04 on Intel Mac

https://github.com/mozekin/apple-bce-drv/blob/aur/INSTALL-UBUNTU.md
2•mozzinator•18m ago•0 comments

Review Frontloading: Do You Love This App? Y/N

https://functionmouse.com/frontloading/
2•functionmouse•23m ago•0 comments

Bugs happen: The easy way to compare solo PQ to ECC+PQ

https://blog.cr.yp.to/20260704-bugs.html
2•zdw•38m ago•0 comments

If I designed a Commodore Phone

https://retrogamecoders.com/if-i-designed-a-commodore-phone/
3•ibobev•45m ago•0 comments

Egg consumption inversely correlated with Alzheimer's

https://pubmed.ncbi.nlm.nih.gov/42002260/
18•natbennett•47m ago•3 comments

My side quest measuring input latency with VK_EXT_present_timing

https://themaister.net/blog/2026/07/02/my-side-quest-measuring-input-latency-with-vk_ext_present_...
2•ibobev•51m ago•0 comments

Spritework on the ZX Spectrum: Rendering

https://bumbershootsoft.wordpress.com/2026/07/04/spritework-on-the-zx-spectrum-rendering/
2•ibobev•52m ago•0 comments

Benzo(a)pyrene

https://en.wikipedia.org/wiki/Benzo(a)pyrene
3•libpcap•52m ago•0 comments

Trying to buy a sandwich with HTTP 402

https://andrewacomb.substack.com/p/trying-to-buy-a-sandwich-with-http
3•acombandrew•52m ago•1 comments

Returning to Zig

https://gracefulliberty.com/articles/return-to-zig/
7•birdculture•57m ago•0 comments

CATL is building more than 200 battery swap stations every month

https://electrek.co/2026/07/04/catl-is-building-more-than-200-battery-swap-stations-every-month/
3•breve•1h ago•0 comments

French Police Dismantle Operation Behind the Defunct YggTorrent

https://torrentfreak.com/french-police-dismantle-operation-behind-the-already-defunct-yggtorrent/
2•gslin•1h ago•0 comments

Morph Reflexes

https://docs.morphllm.com/sdk/components/reflexes
3•handfuloflight•1h ago•0 comments

Return of the Nigerian Prince Redux: Beware Book Club and Book Review Scams

https://writerbeware.blog/2025/09/19/return-of-the-nigerian-prince-redux-beware-book-club-and-boo...
8•Anon84•1h ago•4 comments

Infographic – An Infographic Generation and Rendering Framework

https://infographic.antv.vision/
3•javatuts•1h ago•0 comments

Vibe Coded X11 Server Written in Rust Adds Xinerama, FreeBSD Support

https://www.phoronix.com/news/YSERVER-1.3-Released
2•breve•1h ago•0 comments

The Declaration of Independence

https://acoup.blog/2026/07/04/collections-on-the-declaration-of-independence/
3•colonCapitalDee•1h ago•0 comments

Obsidian AI Setup – Bootstrap a Personalized Obsidian Vault with AI

https://github.com/anliberant/obsidian-ai-setup
2•javatuts•1h ago•0 comments

Reticulum Is Interesting

https://bergie.iki.fi/blog/reticulum-is-interesting/
4•bergie•1h ago•0 comments

Costco's growing cool factor attracts younger audiences

https://www.seattletimes.com/business/costcos-growing-cool-factor-attracts-younger-audiences/
5•TMWNN•1h ago•0 comments

The goal isn't to build "another AI IDE."

https://github.com/BotCoder254/limboo
2•telvin_Teum•1h ago•0 comments

Mama Look a White Dove

https://extelligence.substack.com/p/mama-look-a-white-dove
7•Aloha•1h ago•0 comments

Damo Academy unveils an AI agent able to discover superconductors

https://www.scmp.com/tech/big-tech/article/3359335/alibabas-elements-claw-ai-agent-unearths-four-...
4•yogthos•1h ago•0 comments

India's largest eVTOL demonstrator completes flight tests

https://newatlas.com/aircraft/india-evtol-demonstrator-sarla-aviation-sylla-shunya/
3•breve•1h ago•0 comments