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.

Chess engine, pt. 6: Neural-net evaluation

https://www.dogeystamp.com/chess6/
1•luu•52s ago•0 comments

The Signalflow concepts to learn, for easier charts, alerts

https://martincapodici.com/2026/01/24/the-signalflow-concepts-to-learn-for-easier-charts-alerts-a...
1•mcapodici•4m ago•0 comments

On Programming with Agents

https://zed.dev/blog/on-programming-with-agents
1•saurabh•5m ago•0 comments

Show HN: Orbit – Track "zombie loops" and cost-per-feature in AI agents

https://withorbit.io
1•harshit19932703•8m ago•0 comments

Nix Scripts

https://github.com/QuackHack-McBlindy/dotfiles
1•quackhack•9m ago•0 comments

Data Center Debate, with Philip Johnston (CEO of Starcloud) [video]

https://www.youtube.com/watch?v=0wBFNVEOlnU
1•T-A•10m ago•0 comments

Pigouvian Tax

https://en.wikipedia.org/wiki/Pigouvian_tax
1•nomilk•12m ago•0 comments

What's so special about the find of a Roman panther?

https://www.bbc.co.uk/news/articles/c17zp8pl0pjo
1•zeristor•20m ago•0 comments

A possible future architecture for decoupled GUIs

1•powerwordtree•23m ago•0 comments

Proptest: Property-based testing for Rust (inspired by Hypothesis)

https://github.com/proptest-rs/proptest
1•ThierryBuilds•23m ago•0 comments

A reference layout for Modular Monoliths in TypeScript

https://gist.github.com/ewaldbenes/a7879a187cedb47ed9744ad2929e5d79
1•ebenes•29m ago•0 comments

A self-hosted collaborative viewer for pathology slides (Rust and WebGL2)

https://github.com/PABannier/PathCollab
2•el_pa_b•31m ago•0 comments

NIST is rethinking its role in analyzing software vulnerabilities

https://www.cybersecuritydive.com/news/nist-cve-vulnerability-analysis-nvd-review/810300/
2•milkglass•31m ago•0 comments

On the Tragedy of "The Lost Physics Soul" and the Leap to Structure

https://old.reddit.com/r/prequantumcomputing/comments/1qip5xr/on_the_tragedy_of_the_lost_physics_...
1•bkaminsky•33m ago•0 comments

ast-grep: A CLI tool for code structural search, lint and rewriting

https://github.com/ast-grep/ast-grep
1•aragonite•34m ago•0 comments

Creating a Multi-Agent Tool

https://openagents.org/blog/posts/2026-01-10-walkthrough-creating-a-multi-agent-tool-with
1•snasan•34m ago•1 comments

Show HN: Gmn – A lightweight Gemini CLI in Go (68x faster startup)

https://github.com/tomohiro-owada/gmn
1•abalol•34m ago•0 comments

Garnet: High-performance Redis alternative from Microsoft

https://microsoft.github.io/garnet/
1•wiradikusuma•35m ago•0 comments

Making changing assumptions explicit during development

1•Tobiahao•38m ago•1 comments

I use AI DevKit to develop AI DevKit features

https://codeaholicguy.com/2026/01/24/i-use-ai-devkit-to-develop-ai-devkit-features/
1•hoangnnguyen•38m ago•0 comments

India offloads US bonds, piles up gold in pivot away from dollar assets

https://www.hindustantimes.com/business/india-offloads-us-bonds-piles-up-gold-in-pivot-away-from-...
2•koolhead17•43m ago•0 comments

Not Moaning about AI

https://gilest.org/notes/2026/not-moaning-ai/
1•mindracer•50m ago•0 comments

How Debt Bankrupted the British Empire, and Why America Is Walking the Same Path

https://nitishastra.substack.com/p/how-debt-bankrupted-the-british-empire
3•thisislife2•54m ago•0 comments

Couple Receive $200k Settlement After 'Pungent' Indian Food Complaint

https://www.nytimes.com/2026/01/23/us/palak-paneer-indian-food-racism-settlement.html
1•vinni2•57m ago•0 comments

Modetc: Move your dotfiles from kernel space

https://maxwell.eurofusion.eu/git/rnhmjoj/modetc
2•todsacerdoti•1h ago•0 comments

Gold and Silver Signal the End of American Financial Dominance

https://www.jezebel.com/gold-and-silver-signal-the-end-of-american-financial-dominance
1•thomassmith65•1h ago•1 comments

A 2026 calendar of City of London ceremonies

https://www.ianvisits.co.uk/articles/a-2026-calendar-of-city-of-london-ceremonies-87010/
1•zeristor•1h ago•0 comments

Shared Claude – A website controlled by the public

https://sharedclaude.com/
1•reasonableklout•1h ago•0 comments

The rice of Chinese Memory [video]

https://www.youtube.com/watch?v=qzfhhAfxK-A
1•the4anoni•1h ago•0 comments

Post-Agentic Code Forges

https://sluongng.substack.com/p/post-agentic-code-forges
1•sluongng•1h ago•0 comments