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.

CEU Economic Seminar Series: Long-Run Consequences of Propaganda in Classroom

https://events.ceu.edu/2024-02-20/ceu-economic-seminar-series-long-run-consequences-propaganda-cl...
1•taubek•2m ago•0 comments

1x Forth: Chuck Moore on Forth (1999) [video]

https://www.youtube.com/watch?v=NK0NwqF8F0k
1•tosh•5m ago•1 comments

Bothive – An Operating System for AI Agent Swarms

https://bothive.cloud/
2•jeremyace•6m ago•0 comments

Non Asshole Funding for AI Startup – Binary Diffusion

https://pbs.twimg.com/media/HBHe_y4akAAw6Do?format=png&name=900x900
1•corn13read2•7m ago•1 comments

Show HN: ScreenshotIt – What if a screenshot was just a URL?

https://screenshotit.app
1•rufuspollock•9m ago•0 comments

I got tired of my speaker terminal fighting me, so I rebuilt it

https://fiosproject.de/posts/fixing_my_speaker_system/
1•ls-root•11m ago•0 comments

Rules to Be a Better Thinker in 2026

https://ryanholiday.net/26-rules-to-be-a-better-thinker/
1•rwmj•14m ago•0 comments

AI could eat itself: Competitors (..) steal their secrets and clone them

https://www.theregister.com/2026/02/14/ai_risk_distillation_attacks/
1•myk-e•15m ago•0 comments

CPUs are getting so small they're starting to hallucinate

https://twitter.com/lauriewired/status/2022387879390122049
1•guivr•17m ago•0 comments

Bypassing Kernel32.dll for Fun and Nonprofit

https://ziglang.org/devlog/2026/#2026-02-03
1•agluszak•20m ago•0 comments

Swiyu Swiss e-ID app: security and freedom of choice for Android users

https://www.eid.admin.ch/en/swiyu-wallet-security-and-freedom-of-choice-for-android-users
2•nar001•20m ago•0 comments

Only Samsung loves me back

https://www.anuragk.com/blog/posts/Samsung.html
1•beAroundHere•22m ago•0 comments

Starlink is connecting more than 10M active customers

https://twitter.com/Starlink/status/2022446814591615013
1•tosh•23m ago•0 comments

React Progressive Blur – a lightweight component for smooth edge blur overlays

1•rakiburrahaman•23m ago•0 comments

Show HN: Open-source trading journal in Ruby on Rails

https://github.com/roberthopman/trade-tracking-and-journaling
1•puuush•24m ago•0 comments

Close enough to explain: on collaboration, AI, and staying close to the code

http://stdout.alesr.me/posts/close-enough-to-explain/
1•alesrdev•25m ago•0 comments

ByteDance releases Seed 2 Pro

https://seed.bytedance.com/en/seed2
1•ekoeko•25m ago•0 comments

Claude Usage Monitor

1•anistark•26m ago•0 comments

Profiling on Windows: A Short Rant

https://mropert.github.io/2026/02/13/profiling_on_windows/
1•ingve•28m ago•0 comments

AgentProf – A profiler for agentic coding tools

https://github.com/kitaisreal/agentprof
1•stacyz•29m ago•0 comments

Duck AI voice chat is bloody good

2•Unviable3378•29m ago•0 comments

Computer Vision Agent

https://www.npmjs.com/package/croak-cv
1•nick_vfrog•34m ago•1 comments

AV2 is coming, Sisvel is prepared (2025)

https://www.sisvel.com/insights/av2-is-coming-sisvel-is-prepared/
1•breve•35m ago•0 comments

Show HN: Photorealistic flight simulator in 1 HTML file

https://worldflightsim.com
3•fmfamaral•35m ago•1 comments

Show HN: Agentify - A Declarative, AI agent building toolkit

https://github.com/backplane-cloud/agentify-toolkit
1•lewissheridan•36m ago•1 comments

Memovai/mimiclaw: MimiClaw: Run OpenClaw on a $5 chip

https://github.com/memovai/mimiclaw
1•rcarmo•38m ago•0 comments

Not sure if it's a scam? Get a human second opinion – IsItScam

https://isitscam.xyz/
1•xpl0ziv•38m ago•0 comments

Oxide: new rack with Zen 5 CPUs, DDR5

https://www.theregister.com/2026/02/13/whats_next_for_oxide_computer/
1•tosh•40m ago•0 comments

Towards Autonomous Mathematics Research (Google DeepMind)

https://arxiv.org/abs/2602.10177
1•u1hcw9nx•40m ago•0 comments

idf.py flashless: preview esp-idf web frontends without flashing

https://github.com/matterizelabs/esp-flashless-ui
1•abu-matterize•47m ago•0 comments