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.

BasicOboe: An easy to use but powerful Google Oboe library

https://github.com/tpkarras/BasicOboe
1•tpkarras•1m ago•1 comments

Mario 64 on the Canon EOS R8

https://www.eoshd.com/news/eoshd-backrom-hack-mario-64-on-the-canon-eos-r8/
1•kakadu•3m ago•0 comments

A C++ Quicksort Faster Than std:sort

https://tiki.li/blog/about_blqsort
2•signa11•5m ago•0 comments

Opus wrote my Japan tour promo video in JavaScript

https://www.youtube.com/shorts/Xo8R3wNLgxQ
1•thomashop•12m ago•0 comments

Address Guard Open-source toolkit to detect crypto address poisoning

https://github.com/globalmpc/rwa-kit-js
1•Usman2261•12m ago•0 comments

ClickHouse Acquires Xata

https://xata.io/blog/xata-is-joining-clickhouse
2•mebcitto•19m ago•0 comments

Design with an Elephant. Review with a Goldfish

https://egm.dev/
1•matthewsinclair•22m ago•0 comments

Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

https://strandsagents.com/blog/amazon-saves-millions-replacing-sonnet-with-strands-decider/
22•aloukissas•32m ago•4 comments

Codenotary released AgentMon Live as free, open-source software

https://finance.yahoo.com/technology/ai/articles/codenotary-releases-agentmon-live-free-160000064...
2•noobplus•33m ago•0 comments

Tell HN: Notion AI chat sessions have been exposed via Fireworks AI hack

7•RamblingCTO•33m ago•0 comments

Tinyworlds: Whole Cities, Pocket-Sized

https://tinyworlds.nihey.org/
2•thunderbong•41m ago•0 comments

Mathematicians Are Like Luddites

https://alok.blog/luddite/
3•ilreb•41m ago•0 comments

State of JavaScript 2026 Survey Now Open

https://survey.devographics.com/en-US/survey/state-of-js/2026
2•dfabulich•42m ago•0 comments

The race to secure record-like information for domains

https://alexsci.com/blog/the-race-to-secure-record-like-information-for-domains/
2•meetpateltech•43m ago•0 comments

Show HN: Android and iOS games running offline in the browser

https://phoam.app/demos
2•phoamapp•44m ago•0 comments

gspca

https://www.linuxtv.org/wiki/index.php/Gspca
2•gregsadetsky•47m ago•0 comments

Human Emacs

https://alexschroeder.ch/view/2026-10-31-human-emacs
3•watermelon0•48m ago•0 comments

A sourced dictionary of how engineers pronounce 1,934 developer terms

https://pronounce.renlab.ai/
2•alvinan•49m ago•0 comments

No one can force me to have a secure website [pdf]

https://tom7.org/httpv/httpv.pdf
4•frizlab•53m ago•1 comments

FLEY AI-Voce – a voice AI assistant you but can also control your PC and phone

1•Drfoxi•56m ago•0 comments

"It Gives Great Demo"

https://blog.jim-nielsen.com/2026/it-gives-great-demo/
3•Curiositry•57m ago•0 comments

0.80.0 – ESP-KVM for the JetKVM Mini – ESP-KVM

https://espkvm.io/blog/0-80-0-esp-kvm-for-the-jetkvm-mini/
1•dexif•58m ago•0 comments

Show HN: Case converter with AP/APA/Chicago/MLA title case

https://simplecaseconverter.com/
1•ankurbhardwajde•1h ago•0 comments

I don't want AI in my online search. What options do I have?

https://theconversation.com/i-dont-want-ai-in-my-online-search-what-options-do-i-have-295875
3•billybuckwheat•1h ago•0 comments

Affair Bench: The public record of private affairs.

https://affairbench.com
1•smartrabbit•1h ago•0 comments

Show HN: Calculators for token costs and Claude Code API budgets

https://modelfold.ai/tools/claude-code-cost
1•modelfold•1h ago•0 comments

Stealthy Blue Noise

https://al.radbox.org/doi/10.1145/3842562
2•matt_d•1h ago•0 comments

How Did Greek Fire Work? and 6 Other Lost Inventions

https://www.nytimes.com/2026/11/09/science/lost-inventions-to-time-greek-fire-antikythera.html
1•gumby•1h ago•0 comments

90% of the models can do 90% of the work while best owns the turn

https://myagentforge.ai/
1•dimriprash•1h ago•0 comments

I gave my keyboard shortcut a terminal and a browser

https://omnikeyai.ca/blog/i-gave-my-keyboard-shortcut-a-terminal-and-a-browser
1•rawala01•1h ago•0 comments