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

Unrolling the Codex Agent Loop

https://openai.com/index/unrolling-the-codex-agent-loop/
1•tosh•3m ago•0 comments

My Dive into the World of Telepathy

https://twitter.com/TylerAlterman/status/2014370228990308596
1•bilsbie•6m ago•0 comments

Idea to App Store in 6hrs with Revenue

https://www.youtube.com/watch?v=0CNXLEGM5aE
1•andrewjneumann•7m ago•1 comments

Alex Honnold Completes the Most Dangerous Free-Solo Ascent

https://www.nationalgeographic.com/adventure/article/most-dangerous-free-solo-climb-yosemite-nati...
2•FpUser•7m ago•1 comments

Trust, Delegation, and the Trap

https://metaist.com/blog/2026/01/coding-agents-interview.html
1•metaist•7m ago•0 comments

Show HN: Davia – Visual AI roleplay with image-based conversations

https://play.davia.ai/
3•ruben-davia•8m ago•0 comments

The new Alex Honnold climb

https://www.nytimes.com/2026/01/22/us/alex-honnold-netflix-taipei.html
1•paulpauper•9m ago•0 comments

Stack Overflow: The Architecture (2016 Edition)

https://nickcraver.com/blog/2016/02/17/stack-overflow-the-architecture-2016-edition/
1•tosh•9m ago•0 comments

Silver Museum Emptied in Overnight Heist

https://vblgoldfix.substack.com/p/silver-museum-emptied-in-massive
1•paulpauper•10m ago•0 comments

The GPT-2 moment for world models is here

https://odyssey.ml/the-gpt-2-moment-for-world-models
1•olivercameron•11m ago•0 comments

Elite overproduction, managerial feminism, and the death of mobility

https://www.radicallypragmatic.press/p/the-credential-cartel-how-the-professional
1•paulpauper•11m ago•0 comments

Mystery Prototaxites tower fossils may represent a newly discovered form of life

https://www.scientificamerican.com/article/mystery-prototaxites-tower-fossils-may-represent-a-new...
1•darth_avocado•12m ago•0 comments

Fun things to do with your VM/370 machine

https://rbanffy.github.io/fun-with-old-mainframes.github.io/fun-with-vm370.html
2•PaulHoule•16m ago•0 comments

Explainability Is a Product Feature

https://hashrocket.substack.com/p/explainability-is-a-product-feature
3•thehashrocket•17m ago•1 comments

Banned C++ Features in Chromium

https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++-features.md
1•szmarczak•18m ago•0 comments

Claude Code Is a Footgun

https://jonready.com/blog/posts/claude-code-is-a-footgun.html
2•mips_avatar•18m ago•1 comments

Compound Interest Calculator

https://www.investor.gov/financial-tools-calculators/calculators/compound-interest-calculator
1•kamaraju•20m ago•0 comments

Will AI Pet My Dog for Me?

https://eieio.games/blog/will-ai-pet-my-dog-for-me/
1•pavel_lishin•21m ago•0 comments

Monkey Selfie Copyright Dispute

https://en.wikipedia.org/wiki/Monkey_selfie_copyright_dispute
1•_vaporwave_•23m ago•0 comments

Rust 1.93.0

https://blog.rust-lang.org/2026/01/22/Rust-1.93.0/
2•birdculture•25m ago•0 comments

Show HN: Cryptography, JWT, and ASN1 Debuggers

https://crypto.qkation.com/
1•TheBestTvarynka•26m ago•0 comments

Show HN: Ctx – Context manager for Cloud,K8s VPNs, SSH tunnels, secret managers

https://github.com/vlebo/ctx
2•vlebo•27m ago•1 comments

Show HN: PolyMCP – Simplifying MCP Server Development and Agent Integration

2•justvugg•32m ago•0 comments

China tests hypergravity centrifuge that compresses time and space

https://www.futura-sciences.com/en/china-tests-the-unthinkable-with-a-centrifuge-that-compresses-...
4•walterbell•35m ago•1 comments

Show HN: Hexpiece – a daily chess coverage puzzle

https://hexpiece.com/
2•tothemoon•37m ago•0 comments

Resilience in an Era of Systemic Uncertainty [pdf]

https://static.zegemabeach.com/zegema_beach-2026_resilience_report-20260120.pdf
2•durakot•37m ago•0 comments

Judge rejects DoorDash, Uber bid to block New York City tipping laws

https://www.reuters.com/world/judge-rejects-doordash-uber-bid-block-new-york-city-tipping-laws-20...
3•toomuchtodo•38m ago•0 comments

Arrows to Arrows, Categories to Queries

https://reasonablypolymorphic.com/blog/arrows-to-arrows/
3•surprisetalk•38m ago•0 comments

Maze Algorithms (2017)

http://www.jamisbuck.org/mazes/
4•surprisetalk•38m ago•0 comments

The Math on AI Agents Doesn't Add Up

https://www.wired.com/story/ai-agents-math-doesnt-add-up/
3•brycehalley•40m ago•1 comments