Robin Baumgarten developed an Artificial Intelligence API for Introversion's game DEFCON in 2009. DEFCON is a minimalist RTS game about nuclear war. This page contains information about the API, hints, Q&A, a tutorial and example implementations.
I've heard of a successful installation under Linux using wine-1.0.1 and winetricks.
You'll need:
Here are some documents to get you started with the API.
More information and some usability hints can be found on the documentation page.
Bots and interfaces to Java and LUA are listed on their own page, here.