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

Arms industry given direct influence over university courses in the UK

https://www.declassifieduk.org/arms-industry-given-direct-influence-over-university-courses/
1•robtherobber•1m ago•0 comments

Apple signs meaningless deal to make some less-important parts in America

https://www.theregister.com/2026/03/26/apple_expands_list_of_bits/
2•als0•1m ago•0 comments

GST Registration Certificate: How to Download Online

https://vakilsearch.com/article/how-to-download-gst-certificate/
1•saridha•2m ago•1 comments

Borrow-Checking Surprises

https://www.scattered-thoughts.net/writing/borrow-checking-surprises/
1•birdculture•4m ago•0 comments

Trump promised to cut electric costs. Bills in West Virginia top mortgages

https://apnews.com/article/electricity-utility-bills-west-virginia-trump-coal-38ad648f99a42eb2c73...
2•geox•5m ago•1 comments

Google makes it easy to deepfake yourself

https://www.theverge.com/ai-artificial-intelligence/909104/youtube-shorts-make-ai-avatar
2•thm•6m ago•0 comments

Best AI Software for Auto-Populating Security Reviews 2026

https://websites2know.com/best-ai-software-for-auto-populating-security-reviews/
1•WallaceWalley•7m ago•0 comments

Give Your OpenClaw Agent a Real Memory

https://cortexdb.ai/blog/openclaw-memory-tutorial
2•prmalik•10m ago•0 comments

OpenAI halts UK stargate project amid regulatory and energy price concerns

https://www.cnbc.com/2026/04/09/openai-halts-uk-stargate-project.html
3•Brajeshwar•11m ago•0 comments

How Pizza Tycoon simulated traffic on a 25 MHz CPU

https://pizzalegacy.nl/blog/traffic-system.html
7•FinnKuhn•11m ago•0 comments

Show HN: Vibetime – Track what you ship in AI coding sessions

https://github.com/iamnotstatic/vibetime
2•iamnotstatic•12m ago•0 comments

Show HN: I built a local coding agent using Apple Intelligence

https://barrasso.me/posts/2026-04-09-on-device-coding-with-apple-intelligence/
2•podlp•12m ago•0 comments

Built a small CLI for image generation/editing while working with coding agents

https://github.com/crapthings/nb-cli
2•crapthings•13m ago•0 comments

Helium Is Hard to Replace

https://www.construction-physics.com/p/helium-is-hard-to-replace
3•mhb•14m ago•0 comments

GoAI SDK, one Go library for 22 LLM providers, only 2 core deps

https://github.com/zendev-sh/goai
2•vietanh85•14m ago•1 comments

Eve: Expressive Vector Engine – SIMD in C++ Goes Brrrr

https://github.com/jfalcou/eve
2•tosh•14m ago•0 comments

Show HN: Miro-pdf v0.8.0 – Fullscreen, presentation mode and friendly keybinds

https://github.com/vincent-uden/miro
2•vincent-uden•15m ago•0 comments

Am I German or Autistic?

https://german.millermanschool.com/
5•doener•16m ago•0 comments

Show HN: Incidentary – see what caused your incident before the war room starts

https://incidentary.com/
2•ahmedmostafa16•16m ago•0 comments

Session is shutting down in 90 days

https://getsession.org/donate
21•balamatom•17m ago•7 comments

Same model has varying performance based on provider

https://artificialanalysis.ai/models/gpt-oss-120b/providers
2•kushagra525•17m ago•0 comments

Copyb3T Opinionated Polymarket Trading

https://copyb3t.com/
2•killer1loop•18m ago•1 comments

Anatomy of a Change

https://sibervepunk.com/anatomy-of-a-change/
3•siberpunk•18m ago•0 comments

Using spec-driven development with Claude Code

https://heeki.medium.com/using-spec-driven-development-with-claude-code-4a1ebe5d9f29
3•csbrooks•19m ago•0 comments

Study: Online comments shape perception of political posts despite fixed opinion

https://news.exeter.ac.uk/faculty-of-humanities-arts-and-social-sciences/even-when-peoples-opinio...
2•giuliomagnifico•20m ago•0 comments

Index: The paid API directory for AI agents: indexed, verified, searchable

https://402index.io/
1•janandonly•21m ago•0 comments

Show HN: Loopback – Verified interview feedback that builds your live resume

https://www.joinloopback.com/
2•DataMind•21m ago•0 comments

Building luxury houses pushes down price of more affordable units

https://www.slowboring.com/p/build-baby-build
2•lando2319•22m ago•0 comments

Show HN: Helm Terminal – Free portfolio intelligence that tells you what to do

https://helmterminal.dev
1•helmterminal•23m ago•0 comments

Show HN: I built an app that charges you real money when you miss your goals

https://trykiri.io
1•shawn_xu•26m ago•0 comments